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!

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:
    21
    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:
    44,367
    Likes Received:
    1,856
    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.
     
    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