From: http://jingyan.baidu.com/article/4f34706efc1237e387b56da4.html But personally think this grant 777 of the authority is very bad, so used to comment out, this is a temporary method, There should be a better way.
Use the WordPress program architecture site If you need to upgrade in the background of the site, install the theme or plug-ins, always prompts us to provide FTP information interface. There is the word "to perform the requested operation, WordPress needs access to your Web server's permissions." Please enter your FTP login credentials to continue. If you have forgotten your login credentials (such as user name, password), please contact your site custodian. This is more troublesome, try to solve it now.
First, if we install the LNMP one-button installation package, that can be used. Authorization group to resolve.
Chown-r www/home/wwwroot/www.yxlgh.com (modified to website domain name directory)
Second, if it is something else you can use to add a script in the wp-config.php file.
Define ("Fs_method", "direct");
Define ("Fs_chmod_dir", 0777);
Define ("Fs_chmod_file", 0777);
The above script can be added to the last face of the file.
In fact, these two methods are universal, there is no good or bad.