当前位置:网站首页>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 .
边栏推荐
- 2021-11-02
- 2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
- If function in SQL
- Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
- Software testing related resources
- SSH原理和公钥认证
- Fundamentals of software testing
- How to deal with the relationship between colleagues
- Canoe - description of common database attributes
- Properties and methods of OS Library
猜你喜欢

2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected

Using Lua to realize 99 multiplication table

Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution

Login operation (for user name and password)

Replace() function

Post man JSON script version conversion

Open the neural network "black box"! Unveil the mystery of machine learning system with natural language

Elevator dispatching (pairing project) ②

Installation of ES plug-in in Google browser

Appscan installation steps
随机推荐
QQ group collection
F12 clear the cookies of the corresponding web address
Day7 list and dictionary jobs
[Galaxy Kirin V10] [server] FTP introduction and common scenario construction
[Galaxy Kirin V10] [desktop] build NFS to realize disk sharing
No response after heartbeat startup
Heartbeat error attempted replay attack
Simple understanding of string
Climb Phoenix Mountain on December 19, 2021
[Galaxy Kirin V10] [server] system partition expansion
Send a request using paste raw text
Heartbeat启动后无反应
DNS hijacking
Performance test process
Iptables cause heartbeat brain fissure
The last month before a game goes online
Open the neural network "black box"! Unveil the mystery of machine learning system with natural language
Properties and methods of OS Library
Day06 list job
Post man JSON script version conversion