How to install Composer in Linux

How to install Composer in Linux

To install Composer onto a Linux server run the following commands to, in order.
  • Download the installer to the current directory
  • Verify the installer
  • Run the installer
  • Remove the installer
1)php -r "copy('', 'composer-setup.php');"

2)php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

3)php composer-setup.php

4)php -r "unlink('composer-setup.php');"
    • Related Articles

    • Install SSL Certificate inside SolidCP

      Login to your SolidCP Control Panel 2. Click on Web Sites under your plan. 3.Click on the website to which you wish to install the SSL. 4. Choose SSL from the tabs on the next window. 5. If you already have the SSL click on Upload Certificate, ...
    • New Access Management User setup on Linux

      1) Login to your account 2) Select your access management service (customers with managed infrastructure in both the US and CAD will have two) 3) Navigate to Login to SolidCP -> Click Login 4) Click on Users under your Hosted ...
    • Linux BMR (ReaR)

      Cartika has developed a new Linux BMR tool into our backups/dr and BaaS offerings.  This is more tightly integrated with our GUI and is based on the ReaR *nix server imaging technology. This new Linux BMR replaces the legacy/original Linux BMR. AS ...
    • Managing Repos in Linux

      Removing / Disabling Package/Repos causing conflicts During Yum Update  During yum update if there is a conflict, you need to fix by excluding unwanted 3rd party packages / repos that belongs to a specific repository, use any one of the two methods ...
    • Linux

      Linux     System Information: Print Kernel and OS Release Versions: uname -r (or uname -a for all info) 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 cat /etc/*release* CloudLinux Server release 6.6 (Leonid Kizim) Linux Watch Limit: ...