Aug 22 2008

I posted the other day that I couldn’t get Bugzilla working due to missing Perl modules*. Well last night I badgered 1and1.co.uk to install the modules, but I got a vauge no. I carefully read various pages, and got it installed… here’s how:

Read these instructions** first. If the CPAN shell complains about not having permissions to modify /root/.cpan, read this. Instead of putting the whole Apache httpd.conf <Directory> section (you probably dont have access to an httpd.conf…), you can put the AddHandler/Options/DirectoryIndex lines in a .htaccess file in the Bugzilla directory. Just to note that I couldn’t add the AllowOverride option in for some reason – it threw a 500 error…

Another thing that confused me was this:

perl -pi -e 's@use strict\;@use strict\; use lib \"/home/foo/perl/lib\"\;@' *cgi *pl Bug.pm processmail syncshadowdb

Perhaps the document is out of date, but none of those files existed. I changed Bugzilla.pm (note: you must use the FULL path to your local Perl installation, not just ~/myperl/lib!!!), and hey presto, it works! I now have a nice neat and tidy Bugzilla installation.

* It turns out that Bugzilla 3.2 (in release candidate stage) has a script to do all this for you – doh!

** Updated documentation link to the correct version – doh!

3 Responses to “Getting Bugzilla Working On Shared Hosting”

  1. Paul Raven says:

    Ref: the .htaccess/500 error; seems to be quite common with hosts these days. Fasthosts won’t allow anything beyond redirects and mod_rewrite instructions in .htaccess, at least not on shared hosting. Put in anything else, your site vanishes behind a 500. FAIL.

  2. Dave Miller says:

    What version of Bugzilla were you trying to install? The documentation you linked to was for version 2.22, which is getting kind of old these days.

    Version 3.2 (which is release candidate right now) is pre-coded to allow perl modules to be installed in a subdirectory under bugzilla, and has an install-modules.pl script that will download and install them there for you without having to mess with configuring CPAN.

    Dreamhost also has a really good writeup on installing Bugzilla 3.0 that should work on most shared hosting providers: http://wiki.dreamhost.com/Bugzilla

  3. James says:

    @Paul – Quite – that seems to be the case and it took me a little while to figure out what was throwing the 500 :)

    @Dave – Ahh – I am installing the latest stable (3.05). I just looked up the correct version’s doc, and it’s the same, but thanks for pointing that out – didn’t notice the version mixup. Having a perl script to do all the modules for you would be an absolute dream – doing all this faffing around was a bit of a nightmare. Cheers Dave!

Leave a Reply