WordPress "Unable to move uploaded files to" Error resolution, WordPress workaround _php Tutorial

Source: Internet
Author: User

WordPress "Unable to move uploaded files to" Error resolution, WordPress solution


Today in the Web page upload pictures to the blog, the results prompt: "Unable to move the uploaded files to/home/wwwroot/wp-content/uploads/2013/", depressed, considered to be a permission problem, modified the file, have changed to 777 of the permissions, but still cannot write, Images cannot be uploaded.
Simply, I looked at the root folder of my Site permissions, the display is www, www, and the PS aux|grep nginx display is the nobody of the identity of the run Nginx subroutine, PS Aux|grep php-fpm, the display is also nobody. Also found that the other files and folders in my Site permissions are root,root. This may have been caused by my last direct copy of the root identity, so I can't modify the root file with nobody's identity.
Here's how:
The first step:
First of all, the Nginx and PHP-FPM sub-program running identity into the WWW, user group has become www.
Modify the nginx.conf file, the user nobody nobody, change to user www www;
To run the command:

Service Nginx Restart       //restart Nginx

Modify the php-fpm.conf to change the

  user = Nobody  group = Nobody

Change to:

  user = www  group =www

Run command: Service PHP-FPM reload//Restart PHP-FPM
Step Two:
Modify all folders and files to Www,www

#chown-R Www:www/wwwroot

Upload the image again, prompted to upload successfully, the problem solved.
There are a number of other methods on the web, such as changing the image to an English name, or modifying the folder to 777. In fact, in many cases the permission is 777, but still can not upload, you may consider whether the document is the owner of the problem.

http://www.bkjia.com/PHPjc/1024930.html www.bkjia.com true http://www.bkjia.com/PHPjc/1024930.html techarticle WordPress "Unable to move uploaded files to" Error resolution, WordPress solution today on the Web page upload pictures to the blog, the result is: "Unable to move the uploaded files to ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.