Posted by alanburke on January 3, 2012 at 8:48pm
Jump to:
| Project: | Vagrant |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Any ideas on how to get php5.2 up and running with Vagrant?
It would be good to have a VM with that instead of 5.3
Comments
#1
We don't install PHP 5.3 explicitly, it's simply the version Ubuntu Lucid's package manager installs.
There are a few options, all of which are dependent on platform:
1) Use a base box with an OS stuck to the version of PHP you want (Karmic for Ubuntu AFAIK) - this is probably the easiest option, I haven't tried. Find and download the desired Vagrant base box and change the Vagrantfile to use it.
2) Making a cookbook that pins the versions of the PHP packages before they are installed. An example of such pinning on Lucid could be found in the mercury project.
3) Use a PHP recipe that builds from source instead of using packages.
Anyway, this isn't exactly straightforward and I really don't recommend going out of your way to use PHP 5.2. That said, if you are trying to mimic a specific server, try to figure out what OS that server is using and how they installed PHP and let us know. It's probably just as simple as option 1.
#2
The server I'm trying to mimic is running Windows :-)
So I'l just try to replicate as best I can.
I'll try option 1 - I'll let you know how I get on.