By Calvin Crane
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/sitename.com/html/rootofsite.
This post [https://forum.joomla.org/viewtopic.php?t=808686] 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.
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!
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:
https://www.digitalocean.com/community/tutorials/how-to-troubleshoot-common-apache-errors
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.