Installing composer on CentOs
Установка composer на CentOs

All English-language materials have been translated fully automatically using the Google service

Install PHP CLI (command line interface)

  sudo yum install php-cli php-zip wget unzip  

Download Composer installer

  php -r "copy ('', 'composer-setup.php');"  

Make sure that the signatures of the installers match

  HASH = "$ (wget -q -O -"  

Check that the installer was not damaged

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

Install composer to /usr/local/bin

  sudo php composer-setup.php --install-dir = / usr / local / bin --filename = composer  

If during installation there is not enough memory, then turn off and then turn on the mysql

  service mysqld stop
service mysqld restart  

When an error occurs:

  proc_open (): fork failed - Cannot allocate memory  

We use:

  / bin / dd if = / dev / zero of = / var / swap.1 bs = 1M count = 1024
/ sbin / mkswap /var/swap.1
/ sbin / swapon /var/swap.1  


There are no comments yet, you can be the first to leave it

Leave a comment

The site uses a comment pre-moderation system, so your message will be published only after approval by the moderator

You are replying to a user's comment



Email me

Are you developing a new service, making improvements to the existing one and want to be better than your competitors? You have come to the right place. I offer you a comprehensive studio-level website development. From me you can order design, layout, programming, development of non-traditional functionality, implementation of communication between CMS, CRM and Data Analitics, as well as everything else related to sites, except for promotion.

Contact, I will always advise on all questions and help you find the most effective solution for your business. I am engaged in the creation of sites in Novosibirsk and in other regions of Russia, I also work with the CIS countries. You will be satisfied with our cooperation

An error occurred while sending, please try again after a while
Message sent successfully


+7(993) 007-18-96



Россия, г. Москва

By submitting the form, you automatically confirm that you have read and accept the Privacy Policy site

Contact with me
Send message
By submitting the form, you automatically confirm that you have read and accept Privacy policy of site
Sending successful!
Thank you for contacting :) I will contact you as soon as possible
Sending failed
An error occurred while sending the request. Please wait and try again after a while or call my phone number