403 Forbidden : You don't have permission to access

user3502444 picture user3502444 · Apr 6, 2014 · Viewed 101.1k times · Source

Forbidden

You don't have permission to access /install/step3.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Why is it showing this error when I'm trying to install a script?

Answer

Go Namhyeon picture Go Namhyeon · Oct 15, 2016

Your question have 2 configuration problem.

  • File Permission (in Filesystem)
  • ErrorDocument Attribute (in Apache Webserver)

First, You can solve permission error using 'chmod' and 'chown' command.

try this:

  1. chmod -R 777 directory (777 means allow permission for all)
  2. chown -R [user]:[group] directory (generally, the same [user] and [group])

Second, ErrorDocument handle error can occured from invaild ErrorDocument attribute setting in .htacess or httpd.conf(or apache2.conf) file.

try this:

  1. check your .htacess file in 'install/' directory. If you can not check this file, you can try 'ls -al' command in terminal. you have to find 'ErrorDocument' attribute, and remove or correct it.
  2. check your apache webserver configuration file (httpd.conf or apache2.conf). If you can check 'ErrorDocument' attribute, you can try remove this attribute in file. It is temporary, so you must backup it before try suggested cases.
  3. If you can not solve by case 1 and 2, you can try disable 'AllowOverride' attribute. Try find 'AllowOverride x' attribute and replace to 'AllowOverride None'. Because, this problem can have possiblity from .htacess file in parent directories. AllowOverride attribute can control allow or deny additional configuration in .htacess file.
  4. You must restart apache service after try this cases. you can try 'service httpd restart' or 'service apache2 restart' command.

Good luck to your web server and you.