Laravel 4 - Composer Install fails every time, even though I'm using PHP 5.4

最后都变了- 提交于 2019-12-08 13:57:31

I can't comment directly on thinkers Answer (not enough rep it seems), but I can say that the answer he linked to isn't just about an alias and it works for me.

open composer.json, and you'll see that it's trying to run the php command during post-install, and it's just using the regular php, something like:

php artisan optimize

You need to change that to something like:

/opt/php54/bin/php artisan optimize

Or whatever the path is. Composer, when reading the json file, doesn't really seem to care what your alias is. At least it didn't on the shared server I installed Laravel on.

Antonio Frignani

It seems a common problem on shared hosting when paths are not set properly. I already posted a solution here, maybe it works for you also.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!