HOWTO Upgrade Bugzilla 3.6 to 4.0 on Ubuntu

If I had known what a 1337 exercise this was going to be I would have ignored the  seductive message that appeared on my Bugzilla home page.

WARNING: If Bugzilla tries to tempt you into upgrading from 3.6 to 4.0 then you should know this is not very well automated.

My server was running Bugzilla 3.6 on Ubuntu 10.04.2 LTS with Apache 2.2.14 and MySQL 5.1.41

Here’s what I had to do (from memory – sorry).

  1. apt-get install libapache2-mod-perl2 apache2-dev
  2. Create a file called /etc/apache2/mods-enabled/perl.conf with the following lines (check the path is correct for your installation)
    PerlSwitches -w -T
    PerlConfigRequire /var/www/bugzilla/
  3. Edit the Apache conf file for the Bugzilla site (on my server it was /etc/apache/sites-enabled/000-default). Make sure there is a <Directory> entry for your Bugzilla installation. Make sure the AllowOverride line is correct according to the Bugzilla installation instructions. Mine looked like this after:
    <Directory /var/www/bugzilla>
            AllowOverride Limit FileInfo Indexes
  4. Enable the following Apache modules (I use Webmin to do this; if you want to do this the man’s way then ask a nerd):
    • mod_headers
    • mod_expires
    • mod_env
  5. Restart Apache. There may be a clever way to do this, but I used /etc/init.d/apache2 restart
  6. Follow the instructions in the tempting message on the home page, then do the following additional steps
  7. cd /var/www/bugzilla
  8. ./
  9. Whoa! It’s all broken. Never mind – if you look carefully you’ll see the magic command to fix everything is there. It looks something like /usr/bin/perl all (copy it from the output of, not from here)
  10. If you’re getting error messages at the bottom of the output from then try this
    /usr/bin/perl DateTime:Locale

That’s pretty much it. If it still doesn’t work then try restarting Apache again. If you have to do anything else then let me know and I’ll add it here. Also if I’ve made any mistakes then I’m happy to correct them.

5 thoughts on “HOWTO Upgrade Bugzilla 3.6 to 4.0 on Ubuntu

      • Launchpad is not updating my code from github, so I can not work without these builds since I think I have fixed the error in that repository but its not being updated into the current branch. So, no updates until they fix that bug.

Leave a Reply