今天在linux下安装discuz,访问http://127.0.0.1/install却提示

you don't have permission to access /install on this server

搜了下,解决方法有以下三种:

1、vi /etc/httpd/conf/httd.conf 

把Deny from all全改为Allow

2、目录权限问题。

把要访问的目录改为777 我这里就是chmod -R 777 /var/www/html/install

3、最后,如果还是没有解决问题,那么需要查看扩展的访问权限。

使用setenforce 0关闭SELinux,看是否解决问题。

 

我最后使用3解决了问题