当前位置:网站首页>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 .
边栏推荐
- [Galaxy Kirin V10] [server] system partition expansion
- Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
- Sys module
- Discussion | has large AI become autonomous? Lecun, chief scientist of openai
- MBG combat zero basis
- 3W word will help you master the C language as soon as you get started - the latest update is up to 5.22
- Canoe - the third simulation project - bus simulation - 3-1 project implementation
- Video analysis
- Summary of automated testing framework
- Using Lua to realize 99 multiplication table
猜你喜欢
Article publishing experiment
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
[Galaxy Kirin V10] [server] system partition expansion
JMeter correlation technology
Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
Detailed array expansion analysis --- take you step by step analysis
QQ group administrators
JMeter assembly point technology and logic controller
Summary of collection: (to be updated)
JMeter Foundation
随机推荐
Serialization oriented - pickle library, JSON Library
Installation of ES plug-in in Google browser
三立期货安全么?期货开户怎么开?目前期货手续费怎么降低?
Capl: timer event
Postman advanced
For and while loops
Locust installation
Definition and method of string
Canoe - the second simulation project -xvihicle1 bus database design (operation)
Elevator dispatching (pairing project) ④
Appscan installation steps
Canoe - the third simulation project - bus simulation - 3-1 project implementation
VPS安装Virtualmin面板
SSH principle and public key authentication
Dictionaries and collections
Performance test method
Design and common methods of test case documents
Customized version of cacti host template
QQ get group link, QR code
Hidden C2 tunnel -- use of icmpsh of ICMP