Reconfigure CentOS+freeradius+daloradius again
Make some notes~
http://www.haiyun.me/archives/centos-freeradius-daloradius-ros.html
參照上文進行配置首先是http服務,mysql服務的安裝,然后是php,其中要加上php-pear(php擴展包)
httpd服務會被selinux搞一發,不關閉selinux的解決方案是,setroubleshoot /var/log/audit/audit.log 來獲取解決方案, 存在權限問題
在于把daloradius文件夾時沒有改變上下文權限?
?
反正就是需要改變一下**忘了..(*^__^*) 嘻嘻……
接著是安裝freeradius服務1.修改文件讓其支持sql
2.配置sql.conf radius radpass 作為訪問數據庫驗證(grant all on radius.* radius有關系..?)
此處出了點小問題,忘記打開radiusd服務,還是通過radiusd -X測試才發現
到這里就可以通過radtest命令來做測試,驗證上述是否配置成功,man一下就知道怎么使用了
其中testing123應該是密鑰 保存在 /etc/raddb/clients.conf中然后打開localhost/daloradius HTTP 500 Internal Server ???
網上介紹各種方法修改權限 用戶組 失敗 無奈關閉selinux
setenforce 1 設置SELinux 成為enforcing模式
setenforce 0 設置SELinux 成為permissive模式
成功訪問daloradius/index.php 嗷嗷 但是登錄不進去 數據庫連接失敗
仔細檢查daloradius的config才發現數據庫鏈接用戶名打錯啦 不是root 而是 radius 這里應該是為了安全著想?
?
OVER!還要摸索如何計費啦啦啦
轉載于:https://www.cnblogs.com/gemmeg/p/3995597.html
總結
以上是生活随笔為你收集整理的Reconfigure CentOS+freeradius+daloradius again的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 故障树分析
- 下一篇: DB2 导入导出总结