By Patlamm
I’ve done a lot of research with the post already existing, but now I need some personal advise !
I’ve set up a Wordpress with the 1-click install, imported my Wordpress site. I then followed this tutorial https://www.digitalocean.com/community/tutorials/how-to-configure-secure-updates-and-installations-in-wordpress-on-ubuntu
I’ve check the permission on folders using the ls -l command. They are all « wp-user ». But if I check what user my wordpress run under, it’s « www-data ».
I can’t upload media via the Wordpress interface, also can’t remove certain extension… looks like a permission issue, if I change the upload folder to 777, it works. Should Wordpress run under « wp-user » instead of « www-data » ?
Thanks for your help and clear answer (i’m not a pro ! ;-))
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!
First, I would strongly recommend not setting your permissions to 777. This is a serious security concern. The user wp-user does not exist by default on Ubuntu and is likely left over from the host you exported your site from. All your web files should be owned by www-data. Assuming your web root remains /var/www/html (the default on the WP one-click image) you can fix the ownership with:
chown -Rf www-data.www-data /var/www/html
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.