Home >CMS Tutorial >WordPress >How to ignore ftp login to upgrade wordpress

How to ignore ftp login to upgrade wordpress

藏色散人
藏色散人forward
2022-01-20 17:20:433552browse

The following tutorial column from WordPress will introduce to you how to upgrade WordPress by ignoring ftp login. I hope it will be helpful to friends in need!

How to ignore ftp login to upgrade wordpress

Solution to setting up ftp when upgrading wordpress

Ignore ftp permissions

Whenever we want to upgrade plugins on wordpress or When upgrading 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 this file

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

Add user permissions to the word 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 How to ignore ftp login to upgrade 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