Install fails - not picking up php8.3 even though it is installed.

Created on 7 November 2024, 2 months ago

Composer throws an error that it requires "php >=8.3.0", even though php 8.3-fpm is installed and running.

'systemctl' reports the status of php8.3-fpm as running and active.

composer create-project drupal/recommended-project [my site name]

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

install system

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @indylib
  • This is a bit of a classic support request for PHP platforms. It is quite likely you have different versions of PHP for the webserver than for the CLI. Type php --version and let's see the output.

  • 🇳🇿New Zealand quietone

    Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.

  • you can switch php version using `update-alternatives`. If you are using nginx you may specify the version using

        location ~ \.php$ {
            fastcgi_index index.php;
            fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
       }
    
  • Thank you for contributing that tip @hoxton.

Production build 0.71.5 2024