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


I was having a problem when uploading new themes for my both Wordpress blog. DO’s support helped me with it, saying that i had to create and edit a /.htaccess file.

I did for the first droplet - ok, nice!

When i tried for the second, i was not able to access my blog anymore and got exactly this message: “403 You don’t have permission to access / on this server.”

Can you help me? Thanks

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.

What’s the output of: <br><pre>ls -la /path/to/WordPress/installation</pre> <br>If you see <code>root:root</code> sprinkled anywhere in there, execute: <br><pre>sudo chown -R www-data:www-data /path/to/WordPress/installation</pre>

You have to pass the <code>-r</code> flag to <code>rm</code> in order to delete a directory. So you will have to run this command instead: <pre>rm -r /home/wordpress/public_html/.htaccess</pre>

No, no files! but i’m not able to remove with “sudo rm”