php bound to OS version
Hi, i found out today when setting up a cron that it appears my 'php' command for cron could be bound to the default OS binary php install. To get my cron working i had to prepend the normal cron command with the full on location of my php install.
for example: instead of
php -q /path/to/config.php
i had to use
/opt/cpanel/ea-php56/root/usr/bin/php -q /path/to/config.php
since i set up this server it would not surprise me one bit if i missed something along the way. Is this something i need to fix and how to fix it please?
Thanks :)
-
/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 -
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 -
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 -
Thank you :) 0
Please sign in to leave a comment.
Comments
4 comments