To install Laravel 4 I've to do some tricks because a don't have root PHP 5.3
Instead of using php
I've to use: /opt/php53/bin/
So after downloading composer.phar I type:
/opt/php53/bin/php ~/composer.phar create-project laravel/laravel
Everything works fine until it gets to the json file line: php artisan optimize
Then a have to edit the json file and change all occurrences of php
to /opt/php53/bin/
and the run
/opt/php53/bin/php ~/composer.phar update
Is there a better way to deal with this?