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.
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!