Skip to main content

php bound to OS version

Comments

4 comments

  • 24x7server
    /opt/cpanel/ea-php56/root/usr/bin/php -q /path/to/config.php

    With multiple PHP install, it is obvious that you have to check what PHP version is supported for the script you are running via cron and based on this, you have to use the PHP binary and /opt/cpanel/ea-php** is the place where the PHP installation location is..
    0
  • durangod
    Thanks, i know that i have to add the direct path now but all these years running dif installs of cpanel i always use just php -q ..... for cron and never had to use the direct path, it always just knew where to look putting just php. It must be something new i guess.
    0
  • cPanelMichael
    Hello, We provide a document that helps to explain how this works at: EasyApache 4 and the ea-php-cli Package - EasyApache 4 - cPanel Documentation Thank you.
    0
  • durangod
    Thank you :)
    0

Please sign in to leave a comment.