Friday, 26 February 2016

Install Composer on BlueHost

 

I’m so spoiled by PERL, I forget the nightmare that is library/dependency management when it comes to PHP. One essential piece of software for PHP library management is Composer:

 

Get it here: www.getcomposer.org

 

To install Composer though, you will need SSH terminal access to the Server. To do this, you will first have to “verify” your account to give yourself permission. Log into BlueHost CPanel, and open up “SSH/Shell Access”  under the security bar.

image

There you will be asked to call in to be verified before you can go ahead and open up the SSH port for your account.

 

I commend BlueHost for making this easy to do over the phone.

 

After that you will require a simple SSH client to gain command line access to the server, and, of course the only one anyone ever needs is PuTTY. So get that and log in.

 

The one and only SSH client: http://www.putty.org/ 

 

Afterwards, you will need to write the following commands based on these instructions:

  • mkdir ~/common
  • cd ~/common
  • curl –sS https://getcomposer.org/installer | /ramdisk/php/54/bin/php54-cli
  • echo “alias composer='/ramdisk/php/54/bin/php54-cli ~/common/composer.phar'” >> ~/.bashrc
  • source ~/.bashrc

Twitter

Page Hits