The solution of setting ftp for wordpress upgrade
This article shows you the solution to wordpress upgrade need to set ftp, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.
Ignore ftp permissions
Whenever we want to upgrade plug-ins or wordpress on wordpress, a ftp login pops up, but how do we skip 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 below the last line of the file
Define ("FS_CHMOD_DIR", 0777); define ("FS_CHMOD_FILE", 0777)
# adding user rights to the word press directory, if we are using the nginx user to perform 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 to the need to set up ftp for wordpress upgrade. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.