hofff/contao-shariff

Domain runs on PHP 5.6.30 CGI/FPM at All-Inkl, but contao-shariff 2.0.1 complains about 5.5.38 in package management

jscholtysik opened this issue · 4 comments

A domain of a client runs on PHP 5.6 CGI/FPM at All-Inkl. When I try to update the installed packages, the composer console window shows the following error message:

$ /usr/bin/env php -d memory_limit=10G -d max_execution_time=900 composer.phar update --no-ansi --no-interaction --dry-run --prefer-dist
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- hofff/contao-shariff 2.0.1 requires php ^5.6 || ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- hofff/contao-shariff 2.0.1 requires php ^5.6 || ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- Installation request for hofff/contao-shariff >=2.0.1.0,<2.1-dev -> satisfiable by hofff/contao-shariff[2.0.1].

The server which contains the domain runs on 5.5.38 Apache module, but the domain is set to 5.6.30 CGI/FPM at All-Inkl.
I checked all PHP settings with the support at All-Inkl, so asking the server for the Apache module instead of of the CGI module this must be the reason for the error message.

This is the Apache Version:
bildschirmfoto 2017-07-24 um 23 46 38

An this is set for the domain:
bildschirmfoto 2017-07-24 um 23 47 52

Because of the error message I'm not able to update the packages...

Please use "php56" in the console to set the required php version

php56 -d memory_limit=10G -d max_execution_time=900 composer.phar update --no-ansi --no-interaction --dry-run --prefer-dist

Thanks for the hint. Is it always the case that composer uses the Apache module instead of the defined CGI module?

This depends on the server config and is different for each provider.

Is it always the case that composer uses the Apache module instead of the defined CGI module?

PHP Command Line has nothing to do with Apache or CGI. Its the other way around. CGI/FPM and Apache mod_php use the installed PHP (which contains a CLI and a Service executable). You have at least 2 PHP Versionen installed. Which version mod_php uses depends on the apache config. Which version CGI/FPM uses depends on the FPM config. Which version your shell uses depends on the shell config (PATH, aliase etc).