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

Posted February 11, 2020 2.6k views
ApacheUbuntu 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.

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.

Submit an Answer
1 answer

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.


by Justin Ellingwood
by Kathleen Juell
The Apache HTTP server is the most widely-used web server in the world. It provides many powerful features including dynamically loadable modules, robust media support, and extensive integration with other popular software. In this guide, you will learn how to install an Apache web server on your Ubuntu 18.04 server, as well as information about important Apache files and directories.