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

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.

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.

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 -

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