You don't have permission to access


When I write in URL route to my application (localhost/simpleapp) I get an error " 403 Forbidden - You don’t have permission to access /simpleapp on this server".

How to solve this problem?


If you are using apache check the httpd.conf

  • documentroot, alias

  • DirectoryIndex index.php index.html

  • DirectorySlash: does it work with a ending slash?

  • directory permissions

for example

<Directory "... mydocumentroot ..or alias ...">

    Options -Indexes +FollowSymLinks

    AllowOverride All

    Order allow,deny

    Allow from all 


    #Apache 2.4

    #Require all granted 


check file/dir permissions


I didn’t have directory permissions :rolleyes:

If U are using Ubuntu, U should check this:

I use Ubuntu 14.04 and I corrected file permission. Everything is fine,now.

Thanks Dragan