MultiPHP ini editor and PHP version CronJobs Issue

M.Azzalin

Member
Apr 20, 2016
9
0
1
Biella
cPanel Access Level
Root Administrator
Hello,

I'm experiencing a wierd behavior: I changed the domain PHP version in MultiPHP Manager from 5.6 to 7.0 (there's only one domain) and I correctly see it in the MultiPHP INI Editor but as Home PHP version I still see the 5.6. Shouldn't it be 7.0?
I guess it involves the PHP system version that still is 5.6 but I don't understand why.
Did I miss anything?

The real problem is another one anyways. I'm setting up a cronjob and it's not using the correct php.ini.
/usr/local/bin/ea-php70 /home/user/public_html/file_to_execute.php
/usr/local/bin/php /home/user/public_html/file_to_execute.php
/usr/bin/php /home/user/public_html/file_to_execute.php

In the first case it uses php 7.0 but with the default php.ini (the one I set in WHM), it ignore the domain's one.
In the second case and in the third it uses PHP 5.6 (the home's php version one I guess).

How can I execute the cronjobs using the php.ini I set in the MultiPHP Ini Editor for the domain?

cPanel version is 74.0.9.

Thank you very much for your time!
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,778
331
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
I'm experiencing a wierd behavior: I changed the domain PHP version in MultiPHP Manager from 5.6 to 7.0 (there's only one domain) and I correctly see it in the MultiPHP INI Editor but as Home PHP version I still see the 5.6. Shouldn't it be 7.0?
I guess it involves the PHP system version that still is 5.6 but I don't understand why.
Did I miss anything?
Hello @M.Azzalin,

Regarding the additional issue you reported, can you verify if you are using FCGId as the PHP handler? If so, note the case referenced on the following thread:

[ZC-3763] mod_fcgi default version problem

Also, while the cron job is now working, you may find the following document helpful:

EasyApache 4 and the ea-php-cli Package - EasyApache 4 - cPanel Documentation

Thank you.