@timgavin Well the CLI version of PHP you’re using is reporting it’s PHP version 8.0.28. You should always be using the same versions of PHP across environments.
Apr 24, 2023
5
Level 11
Wrong PHP version detected
I'm deploying with Envoyer and have created a couple deployment hooks. The hooks repeatedly fail saying I'm using PHP 8.0, yet ServerPilot says 8.1.
I also created a phpinfo.php file inside public and phpinfo() says PHP is 8.1.18.
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.28. in /srv/users/comet/apps/comet/releases/20230424180129/vendor/composer/platform_check.php on line 24
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.28. in /srv/users/comet/apps/comet/releases/20230424180129/vendor/composer/platform_check.php on line 24
Any ideas?
Please or to participate in this conversation.