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.