Hi, I had the same problem after updating to laravel 4.2.
My problem was, that I have multiple php versions in my environment. I need to point to the right version in composer.json (for all the post-install/post-update, etc. commands).
Example:
"post-update-cmd": [
"php artisan clear-compiled",
...
],
in my case has to be:
"post-update-cmd": [
"/usr/bin/php5510/php artisan clear-compiled",
...
],
Edit: My default version on cli was 5.3. With the updated composer.json I use version 5.5. Laravel requires at least 5.4!
Which version of php do you use? "[]" is the short notation of the previous "array()" syntax.
disup - That did the trick! The server gave me an error about being unable to load the dynamic library zip.so. But the update worked. So, I'm just going to trust that the server is just being an alarmist.
rokde - I'm on 5.5.6. But, like disup, it defaults to 5.3.
Thank you both for the response.
You have to install the zip-extension for both php-versions I guess :)
disup - Thanks for the soultion, it worked after I upgraded my php and a fresh installation of laravel.
jerauf said:
disup - That did the trick! The server gave me an error about being unable to load the dynamic library zip.so. But the update worked. So, I'm just going to trust that the server is just being an alarmist.
rokde - I'm on 5.5.6. But, like disup, it defaults to 5.3.
Thank you both for the response.
I am from china,and hava the same problem.Do you solve this PHP version problem at finally?If the PHP version can not change,is there any other solution
Hi all,
I'm using a2hosting for my laravel projects.
I just change the current version of my php from 5.3 to 5.5, follow disup said and then it WORKS!! (for Laravel 4.2)
hi lin493369, can I know the details of your server set up so I can help? email me here to keep in touch [email protected]
rokde said:
Which version of php do you use? "[]" is the short notation of the previous "array()" syntax.
Great man
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community