For example, when you create a WordPress site on a VPS host, you need to install themes and plug-ins online. However, when you click "Download and install", "the requested operation will be executed, wordPress requires access to your web server. Enter your FTP login creden。 to continue. If you forget your logon creden。 (such as your username and password), contact your website administrator. "Error message. It seems that our VPS has insufficient site permissions.
How can this problem be solved? For example, this problem also occurs when you build a site in the LLSMP one-click package. How can this problem be solved?
1. Authorization Directory
The code is as follows: |
Copy code |
Chown-R www-data/home/wwwroot/itbulu.com/html
Chmod-R 775/home/wwwroot/itbulu.com/html
Chmod-R 777/home/wwwroot/itbulu.com/html/wp-content/
|
Replace the red part with the directory of your site.
2. Modify the wp-config.php file
The code is as follows: |
Copy code |
Define ("FS_METHOD", "direct ");
Define ("maid", 0777 );
Define ("maid", 0777 );
|
Add the above three lines at the end of the wp-config.php file.
In this way, we can download the plug-in and theme installation in the wordpress background.