By ke7zum
Hello to all. I successfully installed wordpress using the tutorial located at https://www.digitalocean.com/community/tutorials/how-to-use-the-wordpress-one-click-install-on-digitalocean
Worked like a dream, except I can’t import my xml file full of posts. I successfully migrated the wp-content directory from one server to another last night but when I went to import the xml file,I got he error that it was unable to write to wp-content/uploads/2016/04
I know it’s a permissions issue but trying
Sudo chown apache:apache uploads/ failed with unknown user apache:apache.
It now turns out that I’m having issues updating the plugins due to similar permission errors. I think the two might be related. Here is an example of one of the errors when updating.
I don’t have visudo set up right now so am just doing everything as root. I know I know, not safe, but doing this at 11:45 at night I wanted to get as much done before I crashed for the night. By the way I’m not exactly a beginner with ubuntu, but I’m not at intermediate either. I do know kind of what I’m doing as I dabble in Unix and Jessie.
Thanks.
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!
It sounds like you’ve got the problem figured out and updating the ownership of the files should resolve it. On Ubuntu, the default user apache runs as is “httpd” so running:
chown -Rf www-data:www-data uploads/
should resolve the problem.
Sadly that didn’t work. I’m still getting the same error I posted before. I won’t repeat it here for brevity’s sake. I did not get an error when performing the chown command though. So at least that’s progress. I’m also still getting the error of
Sorry, there has been an error. The uploaded file could not be moved to wp-content/uploads/2016/04.
Restarting apache2 did not work either. I’m stuck here as I’ve been googling around since about 11:45 last night trying to solve this 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.