phpinfo(); shows 7.4 but PHP-CLI shows 5.6.37

Started by hielkio, March 03, 2021, 07:41:06 AM

Previous topic - Next topic

hielkio

Hi folks  8),

I'm using PHP-FPM selector and when I request PHP information, I get php-7.4 as response, but when I try to install something with composer, it gives me an error that says that my php version isn't supported. So I checked the php version from the command line (php -v), which gives me php-5.6.37  :o. One strange thing is, that I don't have installed php-v5.x at all.

Anyone else who has this problem? Or maybe someone who has a solution for me?

Thank you very much in advance!

Hielke

rcschaff

For CWP run composer as php selector and php-fpm selector :
For php selector :

/opt/alt/php74/usr/bin/php /usr/local/bin/composer install

For php-fpm selector :

/opt/alt/php-fpm74/usr/bin/php /usr/local/bin/composer install
Google Hangouts:  rcschaff82@gmail.com