Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.8.4.5.2. Install Phalcon Devtools
Procedure for installing Phalcon Devtools:
- Connect to the hosting via SSH.
- Make sure that Phalcon is enabled in the PHP settings of the desired site.
You can check the Phalcon version from the console with the command:/usr/local/php72/bin/php -c /home/example/.system/php/www.example.com.ini -r "echo Phalcon\Version::get();"In the command, use your own data:
- Go to site root directory:
cd example.com/www - Create the
composer.jsonfile with the following contents:{ "require-dev": { "phalcon/devtools": "^3.4" } } - Install Phalcon Devtools using Composer:
composer install --ignore-platform-reqs - Create the aliases needed to run Phalcon Devtools via the console from any directory:
echo "alias phalcon='/usr/local/php72/bin/php -c /home/example/.system/php/www.example.com.ini /home/example/example.com/www/vendor/phalcon/devtools/phalcon'" >> ~/.bashrc && source ~/.bash_profileIn the command, use your own data:
- Make sure the Phalcon Devtools are working by running the command:
phalcon infoThe command should output information about the environment, as well as versions of Devtools and Phalcon itself.