SmartVPS - the complete multi-account hosting solution! Each individual account comes with free backups, addon domains, PHP-FPM with OPcache and server-side caching for lightning-fast sites. And all this at a great price!

Installing Composer

Composer is a popular and powerful dependency manager for PHP. You can easily install it on your account over SSH, and then use it to install and update other applications.

1. First, enable SSH and use it to connect to the server. You can check our online documentation for more information on doing this:

Logging Into Your Account via SSH using Putty
Logging Into Your Account via SSH using Terminal in Mac OS

2. Once you have logged into the account using SSH, you will need to execute the following command:
cd ~/.composer

3. You can then follow the official instructions on installing Composer - more specifically, there is a four-line script near the top of the page that you can either copy and paste in full, or run the individual lines one by one in your terminal screen:

Download Composer

4. Once you have completed the Composer installation, you should execute the following command:
echo "alias composer='php ~/.composer/composer.phar'" >> ~/.bashrc
5. Finally, close the current SSH session, then log back in again. This will make the Composer binary available in your path, and you will be able to execute it from any location on your account.