安装cacti时访问网页报错Forbidden You don't have permission to access/ on this server.

Forbidden You don’t have permission to access / on this server. You don’t have permission to access /phpmyadmin/ on this server. 解决办法

		cacti按照网上的方法安装,去访问网站时网页报错: Forbidden You don't have permission to access / on this server. You don't have permission to access /phpmyadmin/ on this server.
		在网上查找了好多关于该问题的解决办法,大多数是让修改/etc/httpd/conf/httpd.conf文件中的权限:
将

# onlineoffline tag - don’t remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
改成

# onlineoffline tag - don’t remove
Order Allow,Deny
Allow from all
或者是将网站根目录添加777的权限
将上述两种方法试了之后还是不行,仔细检查apache的配置文件发现是文件路径存在问题:

DocumentRoot “/var/www/html/cacti” 改成 DocumentRoot “/var/www/html/” --#119行
网页访问正常


版权声明:本文为weixin_41223830原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。