laravellaravel-4composer-phpmediatemple

Composer error - Your requirements could not be resolved - Laravel 4.2 on Mediatemple


I'm getting a problem reported from composer when running php -d allow_url_fopen=On composer.phar install on mediatemple.

This reports back saying laravel/framework v4.2.6 requires php >=5.4.0 -> no matching package found.

I've updated my php version to be 5.5, but i'm not sure if the above problem is referring to my php version or the laravel/framework package when it says "no matching package found".

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

my minimum stability is set to "stable"

could someone help clarify?


Solution

  • It turns out I was using php v5.3 on the CLI while I was running php 5.5 on the domain successfully as they had told me.

    In order to use the latest php version on the CLI, i had to run php-latest composer.phar install instead of php composer.phar install

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