环境:centos7,上节已安装freeradius和mysql的连接
1.安装Apache服务器
yum -y install httpd httpd-devel
systemctl enable httpd
systemctl start httpd
2. 安装php7
#curl 'https://setup.ius.io/' -o setup-ius.sh
# bash setup-ius.sh
# yum remove php-cli mod_php php-common
# yum -y install mod_php70u php70u-cli php70u-mysqlnd php70u-devel php70u-gd php70u-mcrypt php70u-mbstring php70u-xml php70u-pear
3.下载安装Daloradius
# cd /var/www/html/
# wget https://github.com/lirantal/daloradius/archive/master.zip
# unzip master.zip
# mv daloradius-master/ daloradius
# rm master.zip
4.创建Daloradius管理mysql表
# cd daloradius
# mysql -u root -p radius < contrib/db/fr2-mysql-daloradius-and-freeradius.sql
# mysql -u root -p radius < contrib/db/mysql-daloradius.sql
5.设置目录权限
# chown -R apache:apache /var/www/html/daloradius/
# chmod 664 /var/www/h