Support the ongoing development of Laravel.io →
Installation Packages
Last updated 1 year ago.
0
Solution

It appears as all php artisan commands called from within composer.phar get this error. I solved this by adding explicit path to php 5.6 in composer.json.

The question I'm asking myself is why compoer.phar runs on php 5.4 while all other http and ssh scripts have php 5.6?

0

al1357 said:

It appears as all php artisan commands called from within composer.phar get this error. I solved this by adding explicit path to php 5.6 in composer.json.

I know this is old now, however can you explain how you added an explicit path to PHP 5.6? I think I need to do this to get Composer to work. I can't find the information I need via Google.

0

For the record I got this working calling the full path to php-cli as well. I'm using a vps at SiteGround and this did the job:

/usr/local/php54/bin/php-cli composer.phar

0

Sign in to participate in this thread!

Eventy

Your banner here too?

al1357 al1357 Joined 10 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.