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

藏色散人
Release: 2021-03-03 16:03:21
forward
4199 people have browsed it

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
Copy after login

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

define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);
Copy after login

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/
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template