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 ...