There is a few things I had trouble with getting Symfony2 to work on Dreamhost shared hosting. All in all it was quite a mission. So here are some of my steps to help for next time.
We would like to use PHP 5.4. But default the PHP Cli is 5.2. So some changes are required.
Note: Also make sure your domain is set to PHP 5.4 in the Dreamhost Panel.
First we need to enable the custom php.ini, since we also need to add in some extensions for Symfony2. More info here
So to enable PHP 5.4 for all sites, create this folder:
mkdir -p ~/.php/5.4
Then in your .bash_profile in your home folder, add:
So we are always set with the right version.
Run all the code from the first Gist in your home folder. This will compile the APC extension:
Then open this file and add in the config from the second window above:
(this enables the required extensions and links the apc module we just made)
From now we we should be set. You can test by running:
$ which php
hopefully it says something like: /usr/local/php54/bin/php
Make sure we have composer:
curl -sS https://getcomposer.org/installer | php
We also need to add in Icu to our require field in composer.json since the Intl Apache module at Dreamhost is a little old. As noted here
Next update your project to include that:
php ../composer.phar update --no-dev -o
Perhaps you can do a little dance or something if everything went well. But please celebrate any way you feel appropriate.