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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installed PHP 7 cron job doesn't work

Discussion in 'General Discussion' started by bugetarul, Dec 10, 2017.

Tags:
  1. bugetarul

    bugetarul Member

    Joined:
    Jul 19, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi
    I have two php versions (56 and 7) and I have problems with Cron job
    The cron jobs of applications with php5 dont work
    now they are
    / usr / bin / php -f / home / ...
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,516
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Try configuring the cron jobs to use the specific PHP 5 version to see if that helps. EX:

    Code:
    /usr/bin/php -ea_php 56 /path/to/filename.php
    In this case, "56" represents PHP 5.6.

    Thank you.
     
Loading...

Share This Page