You don't have permission to access

Hello,

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?

Thanks

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 

</Directory>




check file/dir permissions

Thanks.

I didn’t have directory permissions :rolleyes:

If U are using Ubuntu, U should check this:

https://help.ubuntu.com/community/FilePermissions

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

Thanks Dragan