The last notes
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 ('https://getcomposer.org/installer', 'composer-setup.php');"
Make sure that the signatures of the installers match
HASH = "$ (wget -q -O - https://composer.github.io/installer.sig)"
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
Comments