Gérer les cookies utilisés pour la publicité, tels que la personnalisation des annonces, le remarketing et l’analyse des performances des annonces.
2.8.4.4.1. Install Yii 2
Attention!
During installation, the following text will appear in the console on a yellow background:Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
This is not an error, but simply a notification that an older version of Composer is being used.
- Connect to the hosting via SSH.
- Install Composer version 1.x (Yii 2 does not support Composer 2.x).
- Go to your site's catalog:
cd ~/example.com - Install the Composer Asset Plugin (manages dependencies for Bower and npm packages):
composer global require "fxp/composer-asset-plugin:^1.4.6" - Install Yii 2 and configure the root directory:
- To install the Yii 2 Basic Application Template, run the following command:
composer create-project yiisoft/yii2-app-basic wwwReplace
wwwwith the path to the subdirectory where the framework is installed.
- To install the Yii 2 Advanced Application Template, run the following commands:
composer create-project yiisoft/yii2-app-advanced www php www/initIn each of the commands, replace
wwwwith the path to the subdirectory where the framework is installed.
- Wait a few minutes and check if the site is working.