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 .- db-symfony-1.0.0.17 (download link )
- db-symfony-1.1.1 (download link )
- db-symfony-1.2 (download link )
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.Â
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/sfFeedback/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