学习笔记:上网认证4 FreeRadius管理工具daloradius安装

 

环境: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/html/daloradius/library/daloradius.conf.php

6.修改php配置文件
 vim /var/www/html/daloradius/library/daloradius.conf.php
开头部分
$configValues['DALORADIUS_VERSION'] = '0.9-9';
$configValues['FREERADIUS_VERSION'] = '2';
$configValues['CONFIG_DB_ENGINE'] = 'mysqli';
$configValues['CONFIG_DB_HOST'] = 'localhost';
$configValues['CONFIG_DB_PORT'] = '3306';
$configValues['CONFIG_DB_USER'] = 'root';
$configValues['CONFIG_DB_PASS'] = '123';
$configValues['CONFIG_DB_NAME'] = 'radius';

7. 重启服务
# systemctl restart radiusd
# systemctl restart httpd

8.浏览器打开
http://localhost/daloradius/login.php

输入默认账号: administrator 密码:radius

9. 设置中文界面

vim /var/www/html/daloradius/config-lang.php

在html的选择菜单增加 

10. 选择中文

11.安装完毕

12. 本来打算用daloradius 管理 freeradius 和openldap连接的系统,但不能管理openldap用户,不知能不能使用监控,报表,统计功能,这个不知哪位网友有经验,还需请教?

 

  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值