当前位置:网站首页>Install freeradius3 in the latest version of openwrt
Install freeradius3 in the latest version of openwrt
2022-07-04 11:13:00 【juno】
Record the latest use openwrt 19.07 install mysql php nginx + freeradius3 Some of the problems .
Problems encountered during installation :
1:php Incomplete installation of supported components leads to php I won't support it session,mysql etc. .
resolvent :
recompile , All components can be selected .
2:mysql Installation
Mysql The installation of is not different from most conventional source code compilation and installation . It just needs to be modified /etc/config/mysql The configuration file . take enable Change it to 1.
function mysql_install_db --defaults-file=/etc/mysql/conf.d/50-server.cnf Can be installed .
/etc/init.d/mysql start start-up mysql
3:freeradius3 Database import
mysql After default initialization .
Get into /etc/freeradius3/mods-config/sql/main/mysql Catalog .
mysql -uroot use root Sign in mysql. perform create database radius;
establish radius database , If not created here , Back import schema.sql Yes, it will prompt that the database cannot be found
perform mysql -uroot <setup.sql ( I didn't give Mysql Default account setting password ) If everything is normal, there is no hint .
perform mysql -uroot radius < schema.sql, ditto , No prompt is normal .
here freeradius The database of has been successfully imported .
4: Start installation daloradius.
It took a lot of time to install this . Because it uses Openwrt, We also encountered a lot of problems .
take daloradius Put the source code of into the directory of Anyi , Set it up nginx and php.
First of all, I encountered a prompt that I couldn't find DB.php. A local search , I also searched the compiled source code , There is no such document .
It was strange at that time , This project has been going on for so long , Few documents are enough for no one to say . And then again daloradius Of git I have a look at the source code of the previous version , determine , There is no such problem , Look at the Opendb.php The last modification time of this file is 4 Years ago , So it's definitely not the source code , It should be my environment .
So I started the project issue, Sure enough, someone also encountered the same problem .
Someone below answered the solution . use pear install DB install db Expansion pack, .
Then I ssh Connect Openwrt Tried it on , There seems to be no such order .
Checked the , This needs to be compiled php Join in --with-pear.
So I found openwrt inside php Of package. Sure enough, I found a paragraph in it --without-pear. original Openwrt This is disabled by default . So I changed this paragraph into --with-pear. Then compile .
The compilation process went smoothly . But in install There was a problem . Hint not found php This document . I went to the compilation directory to check , This document is clearly here .
After a long time, I still can't . Finally, I have to give up .
Then I checked the information . Found this pear Support can be installed separately . But need php open php-cli Support for . Then recompile php, Open the Php-cli Support for .
Downloaded from the official website .phar Installation package . And then run php-cli pear-phar install . Here's a hint I can't find it /usr/bin/php.emmm... This is not php-cli Do you ?
So to php-cli Created a soft connection . Re install . Everything is finished smoothly , The next step is DB.
function pear install DB Hint not found DB.
emmm... You can find it on the official website , Why can't you find it . At first, I thought that the machine was not connected to the Internet ,ping Check the official website , Yes. , There's no problem with the Internet . I have to download it directly db Of .tgz Installation .
function pear install db.tgz. Everything went well during the installation .
After these are installed , open daloradius, Tips Fatal error: date(): Timezone database is corrupt - this should *never* happ
ok , Recompile again , install zoneinfo.
I thought it was ok , The result is wrong again .UPDATE command denied to user
Judging from the prompt, it should be the permission of the database .
Use... Again root Sign in mysql perform
grant all privileges on radius.* [email protected] identified by 'radpass'; ( there radpass Is your radius Password of the account )
flush privileges;
Revisit , Finally, I can log in normally .
Okay , Write for the first time , Somewhat chaotic .
Just make do with it first . As a record . To prevent forgetting later , After all, there are a lot of processes .
边栏推荐
- Article publishing experiment
- [Galaxy Kirin V10] [server] FTP introduction and common scenario construction
- Open the neural network "black box"! Unveil the mystery of machine learning system with natural language
- 守护进程Xinted和日志记录Syslogd
- Canoe test: two ways to create CAPL test module
- Summary of collection: (to be updated)
- 三立期货安全么?期货开户怎么开?目前期货手续费怎么降低?
- Ten key performance indicators of software applications
- Four sorts: bubble, select, insert, count
- QQ group administrators
猜你喜欢

TS type gymnastics: illustrating a complex advanced type

Notes on writing test points in mind mapping

Hidden C2 tunnel -- use of icmpsh of ICMP

Send a request using paste raw text

Login operation (for user name and password)

Canoe - the third simulation project - bus simulation-1 overview

Appscan installation steps

Elevator dispatching (pairing project) ②
![[Galaxy Kirin V10] [server] system partition expansion](/img/49/5d3e28eab45d300bd5695e47b35e6b.jpg)
[Galaxy Kirin V10] [server] system partition expansion

Digital simulation beauty match preparation -matlab basic operation No. 6
随机推荐
Function parameters (positional parameters, default value parameters, variable parameters, named keyword parameters, keyword parameters)
Interview and lecture summary 1
[Galaxy Kirin V10] [desktop] FTP common scene setup
Understanding of object
Appscan installation steps
Canoe-the second simulation project-xvehicle-1 bus database design (idea)
Login operation (for user name and password)
Oracle11g | getting started with database. It's enough to read this 10000 word analysis
Simple understanding of string
Iptables cause heartbeat brain fissure
[test theory] test process management
F12 clear the cookies of the corresponding web address
Installation of ES plug-in in Google browser
Some tips on learning database
Regular expression
20 kinds of hardware engineers must be aware of basic components | the latest update to 8.13
Canoe the second simulation engineering xvehicle 3 CAPL programming (operation)
Cacti主机模板之定制版
CAPL: on sysVar_ Update difference on sysvar
Getting started with window functions