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

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.