Report this

What is the reason for this report?

403 error (forbidden) for images on Apache Server running Ubuntu 18.04

Posted on February 11, 2020

I understand that this is caused by permissions error. Except when I changed my site theme and added new images some of the images did not load and returned a 403 error. The ones previously on the site (before the theme change) still load but all the new ones don’t. I can add images to other subdomains but not index.html or it will return a 403 error.



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!

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.

Hi @ramvandermeer,

Please provide us with your Vhost file for the website.

Having said that, this doesn’t mean it’s a problem with the Vhost file and it can be due to SELinux Access Control. As this is quite the long topic, I’ll recommend checking out DigitalOcean’s Tutorial about configuring Apache on Ubuntu servers - https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04

It should provide you with the steps on how to configure Apache first and then a proper Vhost file with the proper permissions.

Regards, KDSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.