Skip to content
Advertisement

Why am i getting forbidden error in browser

I am a new user to apache and trying to learn and have setup a domain just for learning and testing. However, before I even start i am getting Forbidden You do not have permission to access this document.. I know after research that this error has to do with either http.conf or .htaccess file.

I do not have .htaccess file in directory and have posted my http.conf file. I would be grateful if someone could help me to overcome this problem. Many thanks

FYI I have replaced sensitive data with leading zeros.

PHP: v5.4 fastcgi APACHE: Apache/2.2.15 (Unix)

Here is result of: ls -la

JavaScript

Advertisement

Answer

in response to comment:

JavaScript

this will chown (change owner) recursivly in your website root to apache:root (you can change to your server user). It then finds all the files (-type f) and executes a chmod 644 and find the directories (-type d) and executes a chmod 755 – hope this helps 🙂

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement