Executing cronjob as an php exact version

i have to execute this cron php -q /home/netme/domains/dominio.netme.es/public_html/modules/addons/WordpressManager/cron/cron.php Synchronize this cron its executed for default php version in the system 5.4 so i change to /opt/rh/rh-php70/root/usr/bin/php-cgi -q /home/netme/domains/dominio.netme.es/public_html/modules/addons/WordpressManager/cron/cron.php Synchronize for version 7.0 used in the virtualserver but this have not the ioncube loader enabled zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.0.so i had try to enable it on: /opt/rh/rh-php70/register.content/etc/opt/rh/rh-php70/php.ini but no success

it's there a way to execute the crons as virtualserver PHP default version taking their php.ini ?

Status: 
Closed (fixed)

Comments

Howdy -- thanks for contacting us!

You can use PHP's -c parameter to specify the location of the config file to use.

ok, thanks, seems that i can run cronjob now as the php version :-D