Composer's mistake - your requirements cannot be resolved - Laravel 4.2 on Mediatemple

I get a problem message from the composer when running php -d allow_url_fopen=On composer.phar installon mediatemple.

This is stated in the message laravel/framework v4.2.6 requires php >=5.4.0 -> no matching package found.

I upgraded the php version to 5.5, but I'm not sure if the above problem applies to my php version or to the laravel / framework package when it says “no matching package was found”.

when I run the above command, it shows that it is "installing dependencies (including require-dev)", but I get the problem described above.

my minimum stability is set to stable

can anyone help clarify?

+4
source share
1 answer

Turns out I used php v5.3 in the CLI when I successfully ran php 5.5 in a domain, as they told me.

To use the latest version of PHP in the CLI, I had to run php-latest composer.phar installinsteadphp composer.phar install

I found this link useful: https://yesdevnull.net/2014/03/using-php-54-cli-on-media-temples-grid-hosting/

+4
source

Source: https://habr.com/ru/post/1547331/


All Articles