After upgrade to 7.4 my permissions seem to be wrong.

Posted October 6, 2020 305 views

I am using Ubuntu 16.4 and recently upgraded to php7.4 Things seemed to be ok until I needed to write something to disk for example delete cache or update a configuration file. I am using joomla and can see all the folders are unwriteable. I have a separate user:group for each website when I created each of them.

my structure is var/www/

This post [] is helpful to a degree but I wanted something more for my droplet.

So something when I upgraded php changed owners somehow. The files and permissions did not change. I suspect the name that apache is running under is changed.

Is there a security implication to setting recursively the www folder to www-data:www-data I think this may allow the apache to access the folders.

Thank You.

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 there,

Yes indeed setting Apache as the owner of the folders should fix the permissions error.

I could also suggest going through this tutorial here on how to troubleshoot common Apache errors:


by Jamon Camisso
There are three main commands, and a set of common log locations that you can use to get started troubleshooting Apache errors. Generally when you are troubleshooting Apache, you will use these commands in the order indicated here, and then examine log files for specific…