Solve the problem of requiring FTP permissions when installing WordPress download theme plug-in in LNMP environment

888u

Last update at :2024-07-08,Edit by888u

The LNMP WEB environment installation package does have a lot of users. Of course, it also benefits from several years of development and updates to maintain stability. As user needs become more discerning and similar tools continue to improve, we sometimes find detailed experience issues in the use of LNMP scripts. For example, after we install the WordPress website program, we need to download themes and plug-in installation in the background. FTP permission prompts will generally appear.

For example we will see \\" To perform the requested action, WordPress requires access to your web server. Please enter your FTP login credentials to continue. If you have forgotten your login credentials (e.g. username, password ), please contact your website host. \\" Such problems are generally caused by the current website directory permissions not being set properly. If we commonly use netizens, we must know to directly use the chown command to set the current website directory permissions, but otherwise use Users definitely don’t know.

First, chown to set directory permissions

chown www:www -R /home/wwwroot/www.laozuo.org

Here we directly set the permissions of the directory where the website is located.

Second, set the file permissions of the current website

define(\\”FS_METHOD\\”,\\”direct\\”);define(\\”FS_CHMOD_DIR\\”, 0777);define(\\”FS_CHMOD_FILE\\”, 0777);

Snails used this method for a while. This requires modifying the wp-config.php file in the root directory of the current WordPress website and adding these three lines at the end.

In about a month (every day on June 1), LNMP will be officially updated with a new version. We hope that this problem will be solved by default in the next version.

Recommended site search: website registration, Hong Kong space, domain name check, US multi-ip station group vps, free space, network registration, US host, high-defense server rental qy, free php space, independent ip,

Solve the problem of requiring FTP permissions when installing WordPress download theme plug-in in LNMP environment

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码