By Antlion
Here’s my setup:
Regardless of the above, wordpress still cannot write config. This is a more underlining permisssion issue apparently, but I can’t figure out why. My solution are to chown -R the wordpress folder www-data:www-data and just go from there, however for security and work flow reasons that’s highly undesirable.
php is also running on www-data, and when I change the unix name/group to my username, any and all files can also write, but from what I read this is also highly undesirable.
I’d like a solution that doesn’t require me to do either of those. Any help would be appreciated.
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!
This question was answered by @sierracircle:
I have had a lot of success using this method:
http://blog.netgusto.com/solving-web-file-permissions-problem-once-and-for-all/
I use the method he describes to mount the /var/www folder in my user home folder as www. That way I have access to it, and anything I create gets the proper permissions for www-data, while still giving my user access.
Took me all of 5 minutes to set up, and has been working for me for the last few weeks with no problem.
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.