Installing older MySQL and PHP
Is there an easy way to install previous versions, say 5.0.27 and 5.2.6? (some parameter to apt-get)?
Or am I going to have to hunt down a distribution myself and pray that all the dependencies are installed already?
8 Replies
If you just want mysql 5.0.x and php 5.2.x try ubuntu hardy or karmic.
My favorite method of working around it is to use apt's pinning function to pull in PHP from the previous release of Ubuntu (9.10):
This seems to work out OK, since the libraries and other software PHP relies on don't have this reverse-incompatibility problem, and the 9.10 package seems to work just fine under 10.04
However, there's other ways that work as well… you can uninstall the existing PHP stuff and compile from source, use a third-party PPA, or use some other method. Each of these have their advantages and disadvantages. My primary motivation for choosing the pinning method was to keep updates simple, in the unlikely(*) event of a security issue in the PHP packages.
(*) That was sarcasm
@hybinet:
Use Ubuntu 8.04 LTS (Hardy), which will continue to get security updates for another 3 years.
Thanks for all the help, guys!
So if I torch my linode and rebuild it, will the LAMP stack script install the 5.0 MySQL and 5.2 PHP? That is, does the 8.04 by design stay pinned to 5.0/5.2, or will it try to install the latest and (not so) greatest
Or should I just pick the 8.04 OS but install stuff myself? (Heh…. talk about a leading question).
Sorry about the newb-tastic questions, the last time I did this was over four years ago, and that time, my dedicated box came pre-loaded and I didn't touch the MySQL/PHP sub-systems.
@hybinet:
you can always start with an empty 8.04 image and apt-get install php5 etc.
Right. I'd prefer (for now) not to do that, if there's a StackScript that will do that for me. Because that way, my list of "things to do after booting", like "add users, lock down ssh, disable ports, install my apps" is shorter.
But that was really the root of my question:
f I install 10.04 and do apt-get install php5, does it install and stay at 5.3.2, while 8.04 installs and stays at 5.2?
5.2.4-2ubuntu5.10