lamp架构下discuz论坛实验错误
报错: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
页:
[1]