2 solutions to the problem of requiring FTP to be entered when upgrading VPS/installing WordPress themes and plug-ins

888u

Last update at :2024-06-15,Edit by888u

Whether we install one-click installation package environments such as LNMP or LLSMP in our own Linux VPS host, when building or moving a website with WordPress program architecture, if we need to upgrade the website background, security themes or plug-ins , will it all prompt an interface that requires us to provide FTP information? There is a message like "\\" To perform the requested operation, WordPress needs permission to access your web server. Please enter your FTP login credentials to continue. If you have forgotten your login credentials (such as username, password), please Contact your web host\\". This problem is somewhat different from the one shared yesterday "Solution to the problem of being unable to download/update theme plug-ins when building WordPress using VPS".

I believe that most of my friends have encountered this problem, so how do we solve it? There is definitely no need to enter FTP information. We can authorize our own WP website.

First, if we install the lnmp one-click installation package, it can be used. Authorization group to resolve.

chown -R www /home/wwwroot/laozuo.org (change to website domain name directory)

Second, if it is the llsmp installation package that Snail likes to use, or others, you can add a script to the wp-config.php file.

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

Just add the above script to the end of the file.

Both the above two methods can solve this problem. We can choose the one we like to solve the problem of needing to enter FTP when upgrading VPS/installing WordPress themes and plug-ins.

Recommended site search: server rental website, dual-line server hosting, website virtual host, free mysql space, anti-complaint vps host, server, domain name expiration query, ip proxy free version, permanent free server address, mainland China space ,

2 solutions to the problem of requiring FTP to be entered when upgrading VPS/installing WordPress themes and plug-ins

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