Home php教程 php手册 WordPress通过FTPS/FTP服务端自动升级方法

WordPress通过FTPS/FTP服务端自动升级方法

Jun 06, 2016 pm 08:11 PM
ftp ftps wordpress upgrade Serve automatic pass

正常情况下点击升级时只要选择FTP/FTPS和输入登陆时用的密码就可以了。但是如果WEB目录权限设置不对,升级时可能会遇到“wordpress 升级时 错误:连接服务器时出错,请检查设置。” 解决方法: 1. 登录服务器,切换到root用户2. 找到WordPress网站的安装目录

正常情况下点击升级时只要选择FTP/FTPS和输入登陆时用的密码就可以了。但是如果WEB目录权限设置不对,升级时可能会遇到“wordpress 升级时 错误:连接服务器时出错,请检查设置。”

解决方法:

1. 登录服务器,切换到root用户
2. 找到WordPress网站的安装目录
3. 将代码目录权限给Web服务的用户
Copy after login


通过下面命令检查你的WEB服务运行在什么用户下:

### Nginx
[root@web101 ~]$ ps aux | grep nginx
www      26928  0.0  0.0  62276  8168 ?        S    04:03   0:00 nginx: worker process                                          
www      26929  0.0  0.0  61764  7992 ?        S    04:03   0:00 nginx: worker process                                          
www      26930  0.0  0.0  62276  8280 ?        S    04:03   0:00 nginx: worker process                                          
www      26931  0.0  0.0  62276  8288 ?        S    04:03   0:00 nginx: worker process                                          
www      26932  0.0  0.0  61500  7860 ?        S    04:03   0:00 nginx: worker process   
### Apache
[root@web102 ~]$ ps aux | grep httpd
web     1279  0.1  0.1 447608 56132 ?        S    Mar03   1:31 /usr/sbin/httpd -d /data/sites/httpd/redhat6_httpd -DHTTPD2.2
web     1280  0.1  0.1 452828 62004 ?        S    Mar03   1:34 /usr/sbin/httpd -d /data/sites/httpd/redhat6_httpd -DHTTPD2.2
web     1281  0.1  0.1 445336 54408 ?        S    Mar03   1:32 /usr/sbin/httpd -d /mezi/sites/httpd/redhat6_httpd -DHTTPD2.2
web     5529  0.0  0.1 453076 58324 ?        S    Mar03   0:30 /usr/sbin/httpd -d /data/sites/httpd/redhat6_httpd -DHTTPD2.2
web     5530  0.0  0.1 451872 56624 ?        S    Mar03   0:26 /usr/sbin/httpd -d /mezi/sites/httpd/redhat6_httpd -DHTTPD2.2
Copy after login

如上面Nginx解决方法:

#/home/www/blog.hexu.org 即WordPress安装目录
[root@web102 ~]$ chown -R www /home/www/blog.hexu.org
Copy after login

如上面Apache解决方法:

#/home/www/blog.hexu.org 即WordPress安装目录
[root@web102 ~]$ chown -R web /home/www/blog.hexu.org
Copy after login

通过以上方法即可解决自动升级的问题了。

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP vs. Flutter: The best choice for mobile development PHP vs. Flutter: The best choice for mobile development May 06, 2024 pm 10:45 PM

PHP and Flutter are popular technologies for mobile development. Flutter excels in cross-platform capabilities, performance and user interface, and is suitable for applications that require high performance, cross-platform and customized UI. PHP is suitable for server-side applications with lower performance and not cross-platform.

Xiaoyi upgraded to an intelligent agent! HarmonyOS NEXT Hongmeng native intelligence opens a new AI era Xiaoyi upgraded to an intelligent agent! HarmonyOS NEXT Hongmeng native intelligence opens a new AI era Jun 22, 2024 am 01:56 AM

On June 21, Huawei Developer Conference 2024 (HDC2024) gathered again in Songshan Lake, Dongguan. At this conference, the most eye-catching thing is that HarmonyOSNEXT officially launched Beta for developers and pioneer users, and comprehensively demonstrated the three "king-breaking" innovative features of HarmonyOSNEXT in all scenarios, native intelligence and native security. HarmonyOSNEXT native intelligence: Opening a new AI era After abandoning the Android framework, HarmonyOSNEXT has become a truly independent operating system independent of Android and iOS, which can be called an unprecedented rebirth. Among its many new features, native intelligence is undoubtedly the new feature that can best bring users intuitive feelings and experience upgrades.

In which folder are wordpress articles located? In which folder are wordpress articles located? Apr 16, 2024 am 10:29 AM

WordPress posts are stored in the /wp-content/uploads folder. This folder uses subfolders to categorize different types of uploads, including articles organized by year, month, and article ID. Article files are stored in plain text format (.txt), and the filename usually includes its ID and title.

Where is the wordpress template file? Where is the wordpress template file? Apr 16, 2024 am 11:00 AM

WordPress template files are located in the /wp-content/themes/[theme name]/ directory. They are used to determine the appearance and functionality of the website, including header (header.php), footer (footer.php), main template (index.php), single article (single.php), page (page.php), Archive (archive.php), category (category.php), tag (tag.php), search (search.php) and 404 error page (404.php). By editing and modifying these files, you can customize the appearance of your WordPress website

How to search for authors in WordPress How to search for authors in WordPress Apr 16, 2024 am 01:18 AM

Search for authors in WordPress: 1. Once logged in to your admin panel, navigate to Posts or Pages, enter the author name using the search bar, and select Author in Filters. 2. Other tips: Use wildcards to broaden your search, use operators to combine criteria, or enter author IDs to search for articles.

The best time to buy Huawei Mate 60 series, new AI elimination + image upgrade, and enjoy autumn promotions The best time to buy Huawei Mate 60 series, new AI elimination + image upgrade, and enjoy autumn promotions Aug 29, 2024 pm 03:33 PM

Since the Huawei Mate60 series went on sale last year, I personally have been using the Mate60Pro as my main phone. In nearly a year, Huawei Mate60Pro has undergone multiple OTA upgrades, and the overall experience has been significantly improved, giving people a feeling of being constantly new. For example, recently, the Huawei Mate60 series has once again received a major upgrade in imaging capabilities. The first is the new AI elimination function, which can intelligently eliminate passers-by and debris and automatically fill in the blank areas; secondly, the color accuracy and telephoto clarity of the main camera have been significantly upgraded. Considering that it is the back-to-school season, Huawei Mate60 series has also launched an autumn promotion: you can enjoy a discount of up to 800 yuan when purchasing the phone, and the starting price is as low as 4,999 yuan. Commonly used and often new products with great value

Which version of wordpress is stable? Which version of wordpress is stable? Apr 16, 2024 am 10:54 AM

The most stable WordPress version is the latest version because it contains the latest security patches, performance enhancements, and introduces new features and improvements. In order to update to the latest version, log into your WordPress dashboard, go to the Updates page and click Update Now.

Does wordpress need to be registered? Does wordpress need to be registered? Apr 16, 2024 pm 12:07 PM

WordPress requires registration. According to my country's "Internet Security Management Measures", websites that provide Internet information services within the country must register with the local provincial Internet Information Office, including WordPress. The registration process includes steps such as selecting a service provider, preparing information, submitting an application, reviewing and publishing, and obtaining a registration number. The benefits of filing include legal compliance, improving credibility, meeting access requirements, ensuring normal access, etc. The filing information must be true and valid, and must be updated regularly after filing.

See all articles