You don’t have permission to access / on this server
Posted on June 4, 2009 with No Comments
On a new apache installation, when i g to the site i got following error
Forbidden
You don’t have permission to access / on this server.
Apache/2.2.11 (Fedora) Server at 192.168.206.128 Port 80
I set permission for DocumentRoot to 755 and change ownership to user apache, but that won’t fix the error.
I checked SELinux status
[root@linux ~]# sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 23 Policy from config file: targeted [root@linux ~]#
Was fixed by disabling SELinux
vi /etc/selinux/config
Find
SELINUX=enforcingReplace with
SELINUX=disabledAfter reboot site started working.
Tags: apache permission, selinux
Category: Linux