MultiPHP ini editor and PHP version CronJobs Issue
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!
-
You should be able to specify the php.ini you want to use in the command line using the -c flag. See this for more info Setting Your PHP Settings in Command Line | InMotion Hosting 0 -
Happy to help! 0 -
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: Thank you.0
Please sign in to leave a comment.
Comments
4 comments