Author Topic: phpinfo(); shows 7.4 but PHP-CLI shows 5.6.37  (Read 9792 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
phpinfo(); shows 7.4 but PHP-CLI shows 5.6.37
« on: March 03, 2021, 07:41:06 AM »
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

Offline
****
Re: phpinfo(); shows 7.4 but PHP-CLI shows 5.6.37
« Reply #1 on: March 05, 2021, 08:06:43 AM »
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