Ubuntu 8.04 LTS or Debian 5 for Drupal 6.x
Chose Ubuntu 10.x LTS only to find that my new Drupal 6.x site was not cool with PHP 5.3. Installed Ubuntu 8.04 LTS. But….then had to upgrade MySQL and can't get something else new for LAMP to work.
The question: should I start over with Debian 5? Would that be more stable and use less RAM than Ubuntu 8.04? I've heard that Debian5 is newer, still on PHP 5.2 and very stable.
I'm not wanting extra work, but if Debian would be a more solid route for my niche community site, I'm all there.
THANKS.
14 Replies
And now honestly… Yes, it comes with PHP 5.2.6 + security patches, MySQL 5.0.x (with 5.1.x in backports repo), and is my personal favourite.
Frankly, what you should have done was installing php 5.2 on your 10.4 from some well-known thirdparty repo, and keeping new things.
And if you don't want to erase (you'd have to do it to switch to Debian), maybe do an in-place upgrade to 10.4, then install php 5.2 from one of the external sources?
May work for someone else, too.
Question: I've got my new Debian linode breathing, but trying to figure out how to upgrade MySQL from the new packages for Debian 5.0. Any tips?
@theatereleven:
Question: I've got my new Debian linode breathing, but trying to figure out how to upgrade MySQL from the new packages for Debian 5.0. Any tips?
You should try dotdeb.org. They have latest PHP and MySQL packages for Debian. Up-to-date with the latest security patches. Instruction is very easy to follow.
deb http://backports.debian.org/debian-backports/ lenny-backports main contrib non-free
(or your favourite mirror from the list
aptitude update.
You'll get a ton of new package "families", (like, mysql-server-5.1), and some other packages will offer both an older official-repo version, and a newer ~bpo version available. You can see these in aptitude's CUI but hitting enter on a package and looking far down under Versions, or by issuing a command like 'aptitude install mysql-server/lenny-backports'.
Note that backported packages are not considerend "newer" to the stable packages, so system never tries to "upgrade" to them. You need to install them explicitly yourself.
Never heard of dotdeb before… not saying it's bad, but backports are an official debian.org service, and I personally would consider it a safer choice.
For example, on an Ubuntu 8.04 system, adding an /etc/apt/preferences file of:
Package: *
Pin: release a=hardy-backports
Pin-Priority: 200
does the trick. Adjust the repository name as needed for other setups.
By default nothing in the backports repository (regardless of version) will be preferred, but if you want to pull in a specific package from backports, you can use "-t hardy-backports" to apt-get. It will also pull in dependencies that may also be in backports (and maintain with upgrades subsequently), but that's it.
– David
PS: I'm not sure I buy all the Ubuntu v. Debian comments in this thread. I think that it's just that in this specific case Debian 5 came out between Ubuntu 8.04 and 10.04 and thus happens to have a particular mix of package versions, but it could easily be different in the future. With that said, either platform should certainly be manageable, just by doing different adjustments to the default packages.
… Ah ha!
> All backports are deactivated by default (i.e. the packages are pinned to 1 by using NotAutomatic: yes in the Release files, just as in experimental).
And, keep note I said above that upgrading the ubuntu back to 10.4 and installing php 5.2 there might be easier than reformatting for Debian. Sure, I prefer Debian, but I'm not forcing anyone to switch.
For anyone reading this, Debian 5 installed and configured easily. I then added a backport line in my sources.list to allow the upgrade to MySQL 5. If you don't know how to do this, just go to a command prompt in something like Putty, login as root and then type:
nano /etc/apt/sources.list
Then add a line that says:
deb
And that will allow you to get the upgrade from the backports. Then run:
apt-get update
All backports are deactivated by default (i.e. the packages are pinned to 1 by using NotAutomatic: yes in the Release files, just as in experimental). To upgrade mysql run:
apt-get -t lenny-backports install mysql-server-5.1
And that will upgrade you. For more info on this visit
Hope that helps somebody!
@theatereleven:
apt-get
Foo!
Learn the ways of /usr/bin/aptitude to reach true enlightenment!
(
@rsk:
Learn the ways of /usr/bin/aptitude to reach true enlightenment!
(
:P )
Unless you need Super Cow Powers.