Quantcast
Viewing all articles
Browse latest Browse all 31

Install Drush via PEAR on a cPanel Server

How to install Drush via PEAR on a cPanel Server 

Install PEAR

The first thing that you need to do is make sure that PEAR is running 

pear version

If PEAR is not installed it can be easily added via EasyApache Update via WHM in the Exhaustive Options List, check the box and recompile to add in PEAR to your server.

Image may be NSFW.
Clik here to view.
install-drush-via-pear-cpanel

 

Once you have PEAR installed, you need to get the PEAR user config file set up - go to your cPanel GUI interface and click on PHP PEAR Packages you will see a config-set screen display 'suceeded'

Image may be NSFW.
Clik here to view.
php-pear-cpanel

Image may be NSFW.
Clik here to view.
php-pear-cpanel-config

Now on the command line go to your home directory and see your PEAR config

cd
ls -la .pea*
-rw-r--r-- 1 letit letit 527 Dec 15 01:05 .pearrc

Link PEAR to the drush channel to download the package

pear channel-discover pear.drush.org

Output should be:

Adding Channel "pear.drush.org" succeeded
Discovery of channel "pear.drush.org" succeeded

Install drush

pear install drush/drush

Upgrading drush

For future upgrades just run

pear upgrade drush 

For drush commands type drush and see what is available - otherwise check the drush website and a starting point for basic drush commands here.


Viewing all articles
Browse latest Browse all 31

Trending Articles