Installing BugZilla 3.4.1 on Dreamhost
Here’s a quick guide on installing Bugzilla 3.4.1 on Dreamhost.
Fire up a shell and follow these steps (these command are from http://wiki.dreamhost.com/Bugzilla) in the directory of the domain you want to install Bugzilla in.
mkdir bugs
cd bugs
wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-STABLE.tar.gz
tar zxf bugzilla-STABLE.tar.gz
rm bugzilla-STABLE.tar.gz
mv bugzilla*/* .
Next, follow setups 6, 7, 8 and 9 from the Bugzilla Dreamhost wiki.
Now you will need to manually install Module::Build and DateTime::Locale for Bugzilla to work. To do this, first get the latest CPAN download links for the modules.
For Module::Build, you’ll find the download link here: http://search.cpan.org/~kwilliams/Module-Build/
For DateTime::Locale, you’ll find the download at: http://search.cpan.org/~drolsky/DateTime-Locale-0.43/
I’ve used the latest available builds at the time of this writing for the example below. Next, follow these steps in the Bugzilla installation directory:
mkdir tmp cd tmp PERL5LIB=/full-path-to-bugzilla-install-dir/lib export PERL5LIB wget http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Module-Build-0.31.tar.gz tar xzf Module-Build-0.31.tar.gz cd Module-Build-0.31 perl Makefile.pl make make test make install cd .. rm -rf Module-Build*# To install DateTime::Locale wget http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Locale-0.43.tar.gz tar zxf DateTime-Locale-0.43.tar.gz cd DateTime-Locale-0.43 perl Makefile.pl make make test make install cd ../.. rm -rf tmp
Re-run ./checksetup.pl and then fix permissions as in the Dreamhost Bugzilla wiki page:
for i in docs graphs images js skins; do find $i -type d -exec chmod o+rx {} \; ; done
for i in jpg gif css js png html rdf xul; do find . -name \*.$i -exec chmod o+r {} \; ; done
find . -name .htaccess -exec chmod o+r {} \;
chmod o+x . data data/webdot
You should now have a working Bugzilla installation at yourdomain.com/bugs.


Hi Mikhail,
Thanks for the write-up.
I’m trying to install a specific version of CGI.pm (3.33 – as the one I’ve installed 3.47 is blacklisted against Bugzilla 3.4.2) following your instructions but at the “make install” section I’m getting:
...
All tests successful, 1 subtest skipped.
Files=20, Tests=519, 6 wallclock secs ( 0.78 cusr + 0.16 csys = 0.94 CPU)
[hoffa]$ make install
Warning: You do not have permissions to install into /usr/lib/perl/5.8 at /usr/share/perl/5.8/ExtUtils/Install.pm line 114.
Cannot forceunlink /usr/share/perl/5.8/CGI.pm: Permission denied at /usr/share/perl/5.8/File/Find.pm line 924
make: *** [pure_perl_install] Error 13
[hoffa]$ echo $PERL5LIB
/home/[myuser]/[mydomain]/bugzilla-3.4.2/lib
Any ideas? As you can see, I have set the PERL5LIB variable, but it still seems to be trying to install in the wrong place…
TIA,
Chris
Hi Chris,
For CGI.pm I guess you could simply use the install-module.pl script. Running this in the bugzilla install directory should be enough:
$ perl install-module.pl CGI
Hi Mikhail,
Thanks for the tip… I had done that before, but it kept installing a newer version of CGI.pm that was incompatible. I decided to clear everything out (including the ~/.cpan directory) and follow your instructions from scratch.
I think I’ve managed to track down the issue: the server was killing some of the install script as being too processor intensive. I used “nice -n 12” to make the install use less CPU, and it looks like it all worked a charm!
I’m going to update the Wiki to suggest using “nice”.
Thanks again for your help and for putting this up.
Cheers,
Chris