We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
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.10.15. Running scripts requiring ionCube, Zend Encoder, Memcache (d) or Redis

To through the console or cron run the script that requires ionCube, Zend Encoder, Memcache(d), Redis or other modules plugged into PHP settings, needed in the launch command:

  1. Specify the path to the PHP interpreter of the same version as installed in the settings of the site in the directory of which the script to run is located.
  2. Specify the path to the php.ini of the site in the directory of which the script to run is located.

Paths to PHP interpreters of all available versions:

/usr/local/php4/bin/php
/usr/local/php52/bin/php
/usr/local/php53/bin/php
/usr/local/php54/bin/php
/usr/local/php55/bin/php
/usr/local/php56/bin/php
/usr/local/php70/bin/php
/usr/local/php71/bin/php
/usr/local/php72/bin/php
/usr/local/php73/bin/php
/usr/local/php74/bin/php

The path to the php.ini site looks like this:

/home/account/.system/php/www.example.com.ini

On my way:

  • Instead account should be hosting account namewhere the script to run is located.
  • Instead www.example.com there should be the name of the site / subdomain in the directory of which the script to run is located.

The launch command itself looks like this:

/usr/local/php72/bin/php -c /home/account/.system/php/www.example.com.ini -f path/to/script.php

In a team:

  • /usr/local/php72/bin/php - the path to the PHP interpreter of the required version.
  • -c - the key followed by the path to php.ini desired site.
  • /home/account/.system/php/www.example.com.ini - way to php.ini desired site.
  • -f - a key followed by the path to the script being launched.
  • path/to/script.php - the path to the script to run.