加入收藏 | 设为首页 | 会员中心 | 我要投稿 源码网 (https://www.900php.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Unix > 正文

radius+httpd+php+mysql+dialupadmin总结

发布时间:2016-08-03 10:29:25 所属栏目:Unix 来源:站长网
导读:RADIUS是一种C/S结构的协议,它的客户端最初就是NAS(Net Access Server)服务器,现在任何运行RADIUS客户端软件的计算机都可以成为RADIUS的客户端。RADIUS协议

9.配置httpd.conf /etc/httpd/conf/httpd.conf

文件添加两处如下:

DirectoryIndex index.html index.php index.html.var//添加index.php

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

AddType application/x-httpd-php .html

修改apache的radius.conf配置文件

# vi /etc/httpd/conf.d/radius.conf

<Directory /usr/share/dialup_admin/htdocs/>

  Options None

  order deny,allow

  deny from all

  allow from 127.0.0.1 192.168.40.39

</Directory>

在allow from 处添加你允许访问freeradius-dialupadmin的ip 用空格分开

修改apache的php.conf配置文件

# vi /etc/httpd/conf.d/php.conf

在未尾添加

AddType application/x-httpd-php .php .php3

10.配置主配置文件admin.conf文件

[root@localhost raddb]# cd /usr/share/dialup_admin/

[root@localhost dialup_admin]# ls

bin  Changelog  conf  doc  htdocs  html  lib  Makefile  README  sql

[root@localhost conf]# ls

accounting.attrs  auth.request        naslist.conf    user_edit.attrs

admin.conf //主配置       captions.conf       naslist.conf.1  username.mappings

admin.conf.1 //为备份1     config.php3         naslist.conf.2

admin.conf.2      default.vals        sql.attrmap

admin.conf.3      extra.ldap-attrmap  sql.attrs

(编辑:源码网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读