当前位置:网站首页>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 .
边栏推荐
- 2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
- 试题库管理系统–数据库设计[通俗易懂]
- Personal thoughts on the development of game automation protocol testing tool
- Simple understanding of seesion, cookies, tokens
- Canoe - the third simulation project - bus simulation - 3-2 project implementation
- regular expression
- Xiaobing · beauty appraisal
- F12 clear the cookies of the corresponding web address
- If function in SQL
- Canoe: the fourth simulation project -- bug debugging experience
猜你喜欢
Canoe: what is vtsystem
20 kinds of hardware engineers must be aware of basic components | the latest update to 8.13
JMeter common configuration components and parameterization
[Galaxy Kirin V10] [desktop] build NFS to realize disk sharing
[Galaxy Kirin V10] [server] FTP introduction and common scenario construction
Replace() function
Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
QQ group administrators
Notes on writing test points in mind mapping
DNS hijacking
随机推荐
Properties and methods of OS Library
Canoe: the fourth simulation project -- bug debugging experience
2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
JMeter assembly point technology and logic controller
Common built-in modules
First article
Usage of with as
Simple understanding of seesion, cookies, tokens
Video analysis
[advantages and disadvantages of outsourcing software development in 2022]
Understanding of object
QQ get group information
No response after heartbeat startup
Analysis function in SQL
QQ group collection
Solaris 10 network services
Appscan installation steps
OSI model notes
Elevator dispatching (pairing project) ③
Jemeter plug-in technology