报错:
You don‘t have permission to access / on this server.
原因:
/目录没有权限访问
/目录权限在/usr/local/apache2/conf/httpd.conf配置文件内进行控制
方法:
# vim /usr/local/apache2/conf/httpd.conf
找到
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all ==>Deny 修改为Allow
</Directory>
检查,重启httpd
# /usr/local/apache2/bin/apachectl -t
# /usr/local/apache2/bin/apachectl restart
本文出自 “Liew” 博客,转载请与作者联系!
原文:http://walterliew.blog.51cto.com/11286797/1895846