My setup
- shared hosting
- no root access
- shell access
- symfony 2.1
- capifony for deployment (well, at least, that’s the plan)
build_bootstrap.php uses
#!/usr/bin/env php
This is linked to the php4 cli in
/usr/local/bin/php
PHP4 does of course not work. The php 5.3 cli is in
/usr/local/bin/php53
Is there a central place to tell Symfony 2.1 to change the env? Something with putenv? Export path in bash config files?
Update:
I am now using an alias for php in my bashrc as @thecatontheflat suggested.
Unfortunately Symfony brings its own logic where to look for the php binaries.
One option is to set PHP_PATH via putenv.
I added it both to app/console and app/autoload.php as both files are involved in the Capifony tasks
Solution:
add two settings to .bashrc/.bash_profile
and also set php_bin in Capifony’s deploy.rb