Home > CMS Tutorial > WordPress > body text

How to ignore ftp login to upgrade wordpress

藏色散人
Release: 2022-01-22 16:09:23
forward
3513 people have browsed it

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

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

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

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

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!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template