Install drush in cpanel

* you will need root access to the server

cd /usr/local/bin
ln -s drush-master/drush drush
cd drush-master
composer install

If composer fails, it is most likely you dont have some extensions. If using cpanel,

# we will need to recompile
echo "--enable-pcntl" >> /var/cpanel/easy/apache/rawopts/all_php5
echo "--with-readline" >> /var/cpanel/easy/apache/rawopts/all_php5

# Now go to whm, easyapache and recompile
# once done you should see the extension being listed with this command line
php -m | grep pcntl

If all is working “drush core-status” should be working

Like it.? Share it:

Comments are closed.