Nội dung
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?
WP–CLI is a set of tools that help developers easily manage installation packages for WordPress websites. With WP–CLI, 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:
cd /usr/local/directadmin/custombuild/ ./build versions | grep WP-CLI
Here is my result on my VPS:
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:
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:
Then you can recheck the WP-CLI version with the command as in step 2.
cd /usr/local/directadmin/custombuild/ ./build versions | grep WP-CLI
And here are my results:
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:
- Hotline 247: 028 888 24768 (Ext 0)
- Ticket/Email: You use the email to register for the service and send it directly to: support@azdigi.com .