Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.8.3.1. Install Composer
Composer 2.x is installed by default on the hosting; there is no need to install it separately.
- Connect to the hosting via SSH.
- Execute the commands:
cd ~ && wget https://getcomposer.org/download/1.10.26/composer.phar chmod +x composer.phar mv composer.phar composerIn the first command, replace
1.10.26with the version number of Composer you need. A list of all versions is available on the official site. - Install the desired version of PHP and create an alias to run Composer from any directory using any of the following methods:Open the "Linux configuration" section and set the following parameters:
- Select the desired PHP version.
- Add the alias
composerfor the command~/composer.
Attention!
This method is not recommended, as the settings configured using it may be overwritten when making changes in the "Linux configuration" section.Run the following commands in the console:
echo "export PATH=/usr/local/php73/bin:$PATH" >> ~/.bashrc echo "alias composer='~/composer'" >> ~/.bashrcIn the first command, replace
php73with the desired PHP version. - Connect to the hosting via SSH or run the following command:
source ~/.bashrc - Check the Composer version:
composer -V
(3)
Comments