RedyHost customers who run Drupal websites in a cPanel hosting, ask us about getting Drupal console available in cPanel. Of course RedyHost cPanel hosting comes with Drupal console preinstalled and available inside the GageFS.
This page describes how to install Drupal console in a cPanel/WHM server with CloudLinux.
This page should be used by system admins who want to make Drupal console available to their customers in cPanel with CloudLinux/CageFS installed.
First, SSH to the cPanel/WHM server as the root user.
Next, run these commands to install drush:
cd curl https://drupalconsole.com/installer -L -o drupal.phar chmod +x drupal.phar mv drupal.phar /usr/local/bin/drupal
Now, as you have installed drush, let's add it to the CageFS so that users could access it
And add this content:
[drupal] comment=Allow Drupal console to work on the server paths=/usr/local/bin/drupal
Next, update CageFS
Test to see if it works, become a CageFS user.
su cagefsuser cd ~ drupal init --override drupal check
To benefit from (benchmarked) fast cPanel hosting, including free as-is cPanel account migration,