By thinkswan
I’m having trouble finding the correct permissions for running a WordPress site on my droplet. I followed this guide to configure the site: How To Configure Secure Updates and Installations in WordPress on Ubuntu
Configuration is as follows:
www-data/var/www/* is owned by wp-user:wp-user755 and files to 644 (WordPress docs)Secure updates and theme/plugin installations work as expected, but I receive the following error when attempting to upload new media through the web interface: Unable to create directory wp-content/uploads/2014/11. Is its parent directory writable by the server?
Any thoughts on how I can configure owners/permissions to allow this (while maintaining security)?
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!
Updating the user/group for the php5-fpm process solved this.
In /etc/php5/fpm/pool.d/www.conf, I updated the user/group lines as follows:
user = wp-user
group = wp-user
Then I restarted the service: sudo service php5-fpm restart
Thanks to masegaloeh over at Server Fault for the helpful comment!
This had been driving me nuts for months! I got all kinds of crazy responses to my cries for help, but none of them did the trick until this.
hello, my wordpres folder dosen’t apper and i give the right acces, if i move a website in the folder html it works … why ?
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.