We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.14.5.2. Installing Phalcon Devtools

To install Phalcon Devtools, do the following:

  1. Connect to hosting via SSH.
  2. Make sure Phalcon included 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/account/.system/php/www.site.com.ini -r "echo Phalcon\Version::get();"

    In the command, substitute your data:

    • php72 - PHP version, established in the site settings.
    • accountname hosting account (not a pseudonym).
    • www.site.com - site name (if the site is on a subdomain, instead of www the name of the subdomain is indicated).
  3. Go to root directory site:
    cd website.com/www
  4. Create a file composer.json with the following content:
    {
        "require-dev": {
            "phalcon/devtools": "^3.4"
        }
    }
  5. Install Phalcon Devtools using Composer:
    composer install --ignore-platform-reqs
  6. Create the aliases required to run Phalcon Devtools via the console from any directory:
    echo "alias phalcon='/ usr / local / php72 / bin / php -c /home/account/.system/php/www.site.com.ini /home/account/site.com/www/vendor/phalcon/devtools/phalcon'" >> ~/.bashrc && source ~/.bash_profile

    In the command, substitute your data:

    • php72 - PHP version, established in the site settings.
    • accountname hosting account (not a pseudonym).
    • www.site.com - site name (if the site is on a subdomain, instead of www the name of the subdomain is indicated).
  7. Verify Phalcon Devtools is working by running the command:
    phalcon info

    The command should display information about the environment, as well as the version of Devtools and Phalcon itself.