Problem with php and cron version

Your environment appears to be running a different PHP version ( 5.6.40-0+deb8u11 ) for the System Cron than the currently loaded PHP version ( 7.3.21-1+0~20200807.66+debian10~1.gbp18a1c2 ). This may cause issues running your System Cron.

I would like to fix it, thanks

You can change the php version for the cli from user settings in webui

I have a client with 5.6 and the rest with 7.3, but I get this error.

The cli php version setting is per user, webserver php version can be set per individual domain

So a user can have a single php version set as default for the CLI , but can set any php version for each web domain.

1 Like
/use/bin/phpX.X to select the php version you want

What I’m using is WHMCS, and the truth is that the cron doesn’t work well.

Run php -v to see the version is running by default

eris@cp : ~ $ php -v

PHP 7.3.21-1+ubuntu20.04.1+deb.sury.org+1 (cli) (built: Aug 7 2020 14:44:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.21, Copyright (c) 1998-2018 Zend Technologies

with Zend OPcache v7.3.21-1+ubuntu20.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

eris@cp: ~$ alias php='env php7.4'
eris@cp : ~ $ php -v

PHP 7.4.9 (cli) (built: Aug 7 2020 14:30:01) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies

@MaKiSpAiN maybe post the full command you are trying to run via cron, so we can help you better?

@eris already pointed out most likely you could simply specify which php version your cron command should use instead of a plain php -xy dosomething so that it matches the version you set your clients web domain to.

I hadn’t put the call to the ioncube in the php.ini of the php cli version.