By enzovecchio
Hello guys, I’m working with ubuntu 14.04 with LEMP and WordPress in it, and now that everything is working (it’s my first unmanaged host), I’m having a permission problem with wordpress.
It doesn’t let me edit the theme files inside wordpress panel (You need to make this file writable before you can save your changes.), and I think that’s only the beginning. I haven’t tried plug-ins yet, but I’ll probably have problems with that too.
My theme files are using 644 permissions, and the only way to be able to edit them is changing these permissions to 664 (adding group write permissions). This is a problem with the wordpress user in ubuntu? How can I fix this without having to edit permissions everytime(using only 644)? The folders are using 755 permission and the files 644 (wordpress default).
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!
I was able to fix this problem using this:
chown -R www-data:www-data /var/www/html/
This is giving ownership of the whole website directory to “www-data” user, right? The thing is… Is that secure?
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.