WordPress Install Plug-ins Prompted to Enter the FTP Account Information

Prompted to enter the FTP account information when you install the plug-in WP background, in fact, this problem is Apache / Nginx execution of the identity of not file owner.

If you are using a stand-alone server or VPS, WordPress installation directory is /var/www/wordpress, to modify the website where the directory permissions:

$ sudo chmod -R 755 /var/www/wordpress

Then the owner of all the files in the site directory to www

$ sudo chown -R www /var/www/wordpress

If you are using a virtual host, add the following code in wp-config.php

define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);
0.00 avg. rating (0% score) - 0 votes