How to Install and Enable WP-CLI on WHM cPanel Server


This article provides a guide for how to install and enable WP-CLI on cPanel WHM server. This guide is intended for root-level cPanel VPS or cPanel Dedicated Server administrators.

What is WP-CLI?

WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser.

Install WP-CLI on cPanel WHM Server

To install and enable WP-CLI on cPanel/WHM server, perform the following steps.

  1. SSH the server as root user
  2. Run the following command to install the WP-CLI packages from Github:
    curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
  3. Execute permissions with:
    chmod +x wp-cli.phar
  4. Allow every user to run WP-CLI by moving it to a directory in the system’s PATH:
    mv wp-cli.phar /usr/local/bin/wp

Conclusion

You have now installed WP-CLI on cPanel WHM server. If you face any difficulties, please open a support ticket for assistance.

Launch 100% SSD VPS from $2.49/mo!

  • wordpress, wordpress management, wordpress development, wpcli, installation
  • 3 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Related Articles

Extended List of WordPress Ping Update Services

This article provides an extended list of WordPress ping Update Services. This list is an...

Remove a Service from ChkServd Monitoring for cPanel Servers

This guide requires root user account in server. In some circumstances, ChkservD cPanel...

Assigning a Dedicated IP Address to a Subdomain using WHM

To assign a dedicated IP address to a subdomain, perform the following steps: Step 1: Add the...

Remove Query Strings from Static Assets in WordPress Website

This article provides the required steps to remove query strings from static assets in WordPress...

How to Uninstall Installatron in WHM cPanel Server

This guide will show you how to quickly uninstall Installatron software from WHM/cPanel server....