简体   繁体   中英

I can't update/install plugins on my wordpress ERROR

i can't update/install plugins on my wordpress: To Perform the requested action, Wordpress need to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host

This error usually happens the Web Server's user (www-data in Apache, for example) doesn't have the right permissions over the files that is trying to modify.

You can solve this issue by granting the right permissions to the Web Server's user.

Run the following commands ONLY if all files within your wordpress directory are supposed to be PUBLICLY available, and you have clear what your Web Sever's user and group are.

Running ls -l from your Wordpress root directory will show you the current ownership state.

These commands can't be undone, and can break your site if used incorrectly. You need to know what you are doing.

chown -R <web_server_user>:<web_server_user_group> <wordpress_root_folder_path>

If you suspect that your directories and files permissions might be incorrect, you can also run:

find <wordpress_root_folder_path>/ -type d -exec chmod 0755 {} \;
find <wordpress_root_folder_path>/ -type f -exec chmod 0644 {} \;

cd to your wordpress location and run this command

sudo chown -R www-data:www-data *

on your terminal. This resolved my issue

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM