1. Home
  2. cPanel
  3. How to install Drupal console in cPanel with CageFS and CloudLinux
  1. Home
  2. Drupal
  3. How to install Drupal console in cPanel with CageFS and CloudLinux

How to install Drupal console in cPanel with CageFS and CloudLinux

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.

Install Drupal console

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

Configure CageFS to support Drupal console

Now, as you have installed drush, let’s add it to the CageFS so that users could access it

vim /etc/cagefs/conf.d/drupal.cfg

And add this content:

[drupal]
comment=Allow Drupal console to work on the server
paths=/usr/local/bin/drupal

Next, update CageFS

cagefsctl --force-update

Test Drupal console as CageFS user

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,

sign up to our cPanel service now

Updated on 7 June, 2017

Was this article helpful?

Related Articles