Home >CMS Tutorial >WordPress >Solution to the need to set up ftp when upgrading wordpress

Solution to the need to set up ftp when upgrading wordpress

藏色散人
藏色散人forward
2021-03-03 16:03:214147browse

The following tutorial column of WordPress will introduce to you the solution to setting up ftp when upgrading WordPress. I hope it will be helpful to friends who need it!

Solution to the need to set up ftp when upgrading wordpress

Ignore ftp permissions

Whenever we want to upgrade plugins on wordpress or upgrade wordpress, an ftp login will pop up, but how do we skip the ftp login?

Solution

Open our word press configuration file wp-config.php

[18:35:08 root@zhang ~]#vim /apps/nginx/html/wordpress/wp-config.php

Then add these two 777 permissions under the last line of the file

define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);

Give word Add user permissions to the press directory. If we use the nginx user to execute the word press service.

[18:37:31 root@zhang ~]#chmod -R 777 /apps/nginx/html/wordpress/
[18:37:50 root@zhang ~]#chown -R nginx:nginx /apps/nginx/html/wordpress/

The above is the solution for setting up ftp when upgrading WordPress.

The above is the detailed content of Solution to the need to set up ftp when upgrading wordpress. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete