Installation Composer Instruction

1. To install Composer log in to your account via SSH.
Use the command
echo 'alias composer="php -d allow_url_fopen=On /home/username/composer.phar"' >> ~/.bashrc
source ~/.bashrc


Here “username” is your account name.

2. You can use the program with any PHP version. To choose version go to cPanel - Software - Select PHP Version

3. Use download installer command:

cd ~
curl -k -O
https://getcomposer.org/installer

4. And installation command:
php -d allow_url_fopen=On installer
Now you need to get sure if the program is installed successfully. Enter the command composer -V
If everything installed correctly, composer will show its version.

Use the update command as well:
composer self-update
It will automatically update the program in the future.

 

這篇文章有幫助嗎?

 列印本文

Also Read

Change Upload/Download File Size

1. Log into cPanel. Click the Select PHP Version button in the Software section  2. Press...

How Can I Edit php.ini Using SSH (putty)?

Connect to the server using SSH. launch Putty. For example, Host Name: host17.sherlockhost.co.uk,...

Which mysql server should be written in the configuration files?

Pleas use "localhost".

How to Change PHP Version in cPanel

1. Log into cPanel. Click the Select PHP Version button in the Software section 2. Select the...

Easy Ways To Speed Up WordPress

At first be sure that you’re not running plugins, that you don’t need and which may make your...