HostOnNet Blog

You don’t have permission to access / on this server

Looking for Linux Server Admin or WordPress Expert? We can help.

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=enforcing

Replace with

SELINUX=disabled

After reboot site started working.

Posted in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.