Web sites that use the WordPress program architecture will always prompt us for an interface to provide FTP information if you need to upgrade, install themes, or plug-ins in the background of your website. With the words "to perform the requested action, WordPress needs to access your Web server's permissions." Please enter your FTP login credentials to continue. If you have forgotten your login credentials (such as your username, password), please contact your web hosting provider. This is more troublesome, now try to solve it!
First, if we install the LNMP one-click installation package, it can be used. Authorization group to resolve.
Chown-r www/home/wwwroot/www.yxlgh.com (modified into the website domain name directory)
Second, if it is other, you can use the Add Script method 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 side of the file.
In fact, these two methods are universal, there is no good or bad.
Troubleshoot installing WordPress themes and plugins that require input FTP issues