How to install composer on Your shared webhosting account?
Some customers have asked how/if composer can be used on their shared webhosting accounts. Yes – it is possible:
1. Log on via SSH to Your account
2. Download composer:
curl -sS https://getcomposer.org/installer | php
3. Create needed folder and move needed file there:
mkdir bin mv composer.phar $HOME/bin/composer
4. Add shortcut to composer to Your profile .bashrc file.
export PATH="$PATH:~/bin/" source ~/.bashrc
5. Logoff and log on again to SSH – needed path variable should be there now:
echo $PATH
When entering command:
composer --version
You should see version as: “Composer version 1.5.* …. …..”
All needed commands mentioned previously:
curl -sS https://getcomposer.org/installer | php mkdir bin mv composer.phar $HOME/bin/composer export PATH="$PATH:~/bin/" source ~/.bashrc
DomPDF addon and Error 500 Login to cPanel / reset cpanel password
Comments are currently closed.