Custom .debs for Symfony (1.0/1.1 & 1.2) for Debian/Ubuntu

Installing multiple versions of symfony

As i wanted to test some of my projects compability against symfony 1.1, i wanted to install multiple symfony versions on my system. The main reason for this i want to keep the default symfony installation on my desktop as well as on our production environment.Â
Now as you know, we are working with 5 workstations and multiple servers. So it’s a real pain in the *** doing this stuff all over again on each of those machines, so i decided to create some .debs.

The Solution

Thanks to a great guide posted on the Symfony Wiki i was up & running in under 5 minutes. I had to check out the different versions, create some folders to hold the different symfony installs and create some symlinks to make sure you can use those different versions by command line.

The Packages

I created 3 different packages for each version of symfony. You can install as many as you like, as those will all use a different path. Direct Link .
I tested these packages on an Ubuntu Hardy & Feisty and it works like a charm. Let me know if it doesn’t for you.
If you have a hard time figuring out which version of the symfony framework you want to use for your project, check this post

Show me the magic

You can see you now have 3 (or 4) different versions of Symfony available to you.Â
 Multiple Version of Symfony On the same system

Configuration

Now the hardest part (if you can even call it that). Howto tell your symfony application which symfony to use ? Just go to your applications config/config.php and update the paths to the corresponding version.
[code]#52[/code]
Don’t forget to also update the /js path in your virtual host configuration , change the version to the one you want to use for this project.
Alias /sf /usr/share/php/symfony_1.0/data/web/sf
Feedback/Suggestions welcome, just send an email to info@digitalbase.eu Â
Update : if you have a problem opening PHP files (error occured during Selection Job Title) here is my follow-up post (the fix)

No comments:

Post a Comment