WordPress通过FTPS/FTP服务端自动升级方法
正常情况下点击升级时只要选择FTP/FTPS和输入登陆时用的密码就可以了。但是如果WEB目录权限设置不对,升级时可能会遇到“wordpress 升级时 错误:连接服务器时出错,请检查设置。” 解决方法: 1. 登录服务器,切换到root用户2. 找到WordPress网站的安装目录
正常情况下点击升级时只要选择FTP/FTPS和输入登陆时用的密码就可以了。但是如果WEB目录权限设置不对,升级时可能会遇到“wordpress 升级时 错误:连接服务器时出错,请检查设置。”
解决方法:
1. 登录服务器,切换到root用户 2. 找到WordPress网站的安装目录 3. 将代码目录权限给Web服务的用户
通过下面命令检查你的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
如上面Nginx解决方法:
#/home/www/blog.hexu.org 即WordPress安装目录 [root@web102 ~]$ chown -R www /home/www/blog.hexu.org
如上面Apache解决方法:
#/home/www/blog.hexu.org 即WordPress安装目录 [root@web102 ~]$ chown -R web /home/www/blog.hexu.org
通过以上方法即可解决自动升级的问题了。
原文地址:WordPress通过FTPS/FTP服务端自动升级方法, 感谢原作者分享。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



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.

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.

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.

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

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.

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

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.

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.
