Home WebServer PanelDirectAdmin Upgrade the WP-CLI version on DirectAdmin

Upgrade the WP-CLI version on DirectAdmin

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

In this article, AZDIGI will show you how to upgrade the WWP-CLI version on DirectAdmin to the latest version.

I. What is WP-CLI?

WPCLI is a set of tools that help developers easily manage installation packages for WordPress websites. With WPCLI, developers can perform backend tasks easily through the command line. … Install, set up, update and remove themes, plugins, widgets.

You can refer to articles about WP-CLI by following the link below:

II. Upgrade the WP-CLI version on DirectAdmin

To upgrade the WP-CLI version on DirectAdmin, we need to follow these 3 steps.

Step 1: SSH into your DirectAdmin system

To upgrade the ProFTPD version on DirectAdmin, we first need to SSH or access your VPS/server with root privileges. If you don’t know how to SSH into your VPS/Server, you can refer to the following tutorial:

After successfully SSH, we continue with step 2 to check the version of WP-CLI in use and the latest version.

Step 2: Check the version of WP-CLI in use

To check what version of WP-CLI is using and what is the latest version, we use the following command:

AZDIGI Tutorial
cd /usr/local/directadmin/custombuild/
./build versions | grep WP-CLI
    

Here is my result on my VPS:

How to upgrade the WP-CLI version on DirectAdmin

The version of WP-CLI I am using is 2.4.0, and the latest version is currently 2.5.0.

After knowing that the version we are using is the old version, we can continue to step 3 to perform the WP-CLI version upgrade commands on DirectAdmin.

Step 3: Commands to upgrade WP-CLI version on DirectAdmin

To upgrade WP-CLI, we need to execute the commands below:

AZDIGI Tutorial
cd /usr/local/directadmin/custombuild
./build update
./build wp
    

Explanation of the above commands:

  • Command 1: Move to custombuild folder.
  • Command 2: Update custombuild script.
  • Command 3: Upgrade WP-CLI to the latest version.

Below is the result after I have finished running the above 3 commands:

How to upgrade the WP-CLI version on DirectAdmin

Then you can recheck the WP-CLI version with the command as in step 2.

AZDIGI Tutorial
cd /usr/local/directadmin/custombuild/
./build versions | grep WP-CLI
    

And here are my results:

How to upgrade the WP-CLI version on DirectAdmin

The version of WP-CLI I’m using on my VPS is 2.5.0, the latest version at the moment is also 2.5.0.

So we have finished upgrading the WP-CLI version on DirectAdmin.

III. Summary

With only 3 basic steps, we have completed the upgrade of the WP-CLI version on DirectAdmin. Upgrading the servers’ services will help your server operate more and more stable, add more features in newer versions, and also fix the backlog errors from the old versions,

which will solve many problems that may arise in the future.

Hope this article will be of help to you. Wishing you success!

See more useful articles about DirectAdmin at the following link:

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign