Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

MultiPHP ini editor and PHP version CronJobs Issue

Discussion in 'EasyApache' started by M.Azzalin, Oct 24, 2018.

Tags:
  1. M.Azzalin

    M.Azzalin Member

    Joined:
    Apr 20, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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!
     
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,484
    Likes Received:
    187
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. M.Azzalin

    M.Azzalin Member

    Joined:
    Apr 20, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Biella
    cPanel Access Level:
    Root Administrator
  4. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,484
    Likes Received:
    187
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    Happy to help!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice