Wednesday, April 27, 2005

ubuntu upgrade hosed wordpress

A while ago I upgraded desktop/server at work that holds my work blog from ubuntu 'warty warthog' (initial release) to ubuntu 'hoary hedgehog' (current release). Everything
went just fine except apache2/php4/mysql had some problems and the blog stopped working.

The problem was WordPress 1.5 couldn't connect to mysql, but phpmyadmin could connect just fine. Strange. This is what I ended up doing:


$ sudo apt-get --purge remove apache2 phpmyadmin php4 (and maybe a few others that depended on apache or php)

... verify that /etc/apache2/, /etc/php4 were gone...

$ sudo apt-get install apache2 php4 phpmyadmin


At appears that one of the configuration files for either php4 or apache2 didn't get properly upgraded.