当前位置:网站首页>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 .
边栏推荐
- Attributes and methods in math library
- Function parameters (positional parameters, default value parameters, variable parameters, named keyword parameters, keyword parameters)
- MBG combat zero basis
- Lvs+kept realizes four layers of load and high availability
- regular expression
- IO stream ----- open
- Installation of ES plug-in in Google browser
- Elevator dispatching (pairing project) ④
- JMeter assembly point technology and logic controller
- Strings and characters
猜你喜欢

Function introduction of canbedded component

Application and Optimization Practice of redis in vivo push platform

SQL greatest() function instance detailed example
![[Galaxy Kirin V10] [server] FTP introduction and common scenario construction](/img/ef/f0f722aaabdc2d98723cad63d520e0.jpg)
[Galaxy Kirin V10] [server] FTP introduction and common scenario construction

Function parameters (positional parameters, default value parameters, variable parameters, named keyword parameters, keyword parameters)

Performance test method

Properties and methods of OS Library

Serialization oriented - pickle library, JSON Library

Deepmind proposed a Zuan AI, which specially outputs network attack language

Canoe: what is vtsystem
随机推荐
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
[test theory] test process management
[Galaxy Kirin V10] [desktop] FTP common scene setup
Day7 list and dictionary jobs
51 data analysis post
Solaris 10网络服务
Unittest+airtest+beatiulreport combine the three to make a beautiful test report
First article
Application and Optimization Practice of redis in vivo push platform
No response after heartbeat startup
Cacti主机模板之定制版
Local MySQL forgot the password modification method (Windows)
守护进程Xinted和日志记录Syslogd
Postman interface test
Summary of collection: (to be updated)
Polymorphic system summary
Using SA token to solve websocket handshake authentication
Properties and methods of OS Library
Elevator dispatching (pairing project) ②
DNS hijacking