处理服务器You don't have permission to access的问题

处理服务器You don't have permission to access的问题_第1张图片

出现了这样的问题:

Edit httpd.conf file, which is in /etc/httpd/conf/httpd.conf. Add the below code.


#Options FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Allow from all



 #Options FollowSymLinks
 Options Indexes FollowSymLinks Includes ExecCGI
 AllowOverride None
 Allow from all

After the line no. 555 (in my case) . Check for the file permissions and restart the server.

service httpd restart   

Now, it will work . Still you are facing the same problem, disable the seLinux in /etc/selinux/config change SELINUX=disabled and restart the server as mentioned above and try it.

Hope this helps


原文地址:stackoverflow.com

https://stackoverflow.com/que...

你可能感兴趣的:(php,apache)