Question

Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered

i just updated my website and the was the error

Forbidden

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

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

is there a way i can resolve this

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

There is a possibility of misconfiguration after the website update – that is, wrong file permissions are restricting the server to access the files. You should check the File permission of your web root directory which contained the index.html or index.php files.

For diagnostic correction, allow permission for all by typing:

sudo chmod -R 777 /path/to/index.html and then; sudo chown -R [username]:[group] /path/to/index.html

where username is the ‘username’ you use to login to the Droplet, and group will be www-data if your web server is Apache.

Please let us know if this tip solves your problem. If not. then we will have to correct the ‘ErrorDocument’ attribute in apache configuration file or the attribute ‘AllowOverride’ in .htaccess file.

Hi @lavgee

When the website was updated, it probably removed some files - including index.php or index.html of the directory you’re trying to view, which is why you get that error, since directory listing is not something that is enabled by default.

Which website system do you use?

You can see more detailed errors in the error log, which is located in: If using Apache, it’s default location is /var/log/apache/error.log If using Nginx, it’s default location is /var/log/nginx/error.log

Hello,

I just came across this question. In addition to what has already been mentioned, I would recommend checking the answer here on how to troubleshoot common Nginx problems:

https://www.digitalocean.com/community/questions/how-to-troubleshoot-common-nginx-issues-on-linux-server

Regards, Bobby