To install Composer, you'll need to access the terminal from the control panel (DirectAdmin or cPanel).
SSH is available, but is only available/enabled on request.
If you require SSH access, please reach out to our team via a support ticket with the request, and we can have the feature enabled.
Please follow this guide on how to raise a support ticket within your account. Click here.
Open the terminal from your control panel.
DirectAdmin:
cPanel:
In the terminal, run the following commands to install Composer:
This will download the file and install Composer:
curl -sS https://getcomposer.org/installer | php
This will install Composer:
php composer.phar install
You may get an error if you haven't created a composer.json file: To initialise a project, please create a composer.json file. See https://getcomposer.org/basic-usage
To create an alias for it, use the following commands:
echo 'alias composer="php ~/composer.phar"' >> ~/.bashrc
source ~/.bashrc
composer install
