Font size:
Howto upgrade Bugzilla
Steps in upgrading a bugzilla installation
- Become root
- Stop mysql: /etc/init.d/mysql stop
- Take a backup of mysql: tar zcppf mysql-backup-`date +%x`.tar gz /var/lib/mysql
- Install the following packages if they don't exist:
- apt-get -y install libemail-send-perl libgd-graph-perl libnet-ldap-perl libapache2-mod-perl2 libapache-dbi-perl libhtml-scrubber-perl libxml-twig-perl libsoap-lite-perl libchart-perl perlmagick unzip make links libemail-mime-contenttype-perl libemail-mime-encodings-perl libemail-mime-modifier-perl libemail-mime-perl libemail-simple-creator-perl apache2 mysql-server openssh-client
- perl -MCPAN -e 'install PatchReader'
- Fetch the wanted bugzilla from http://www.bugzilla.org/download/, in my case 3.0.2
- Move the original bugzilla away: mv /home/gtuit/giellatekno/public_html/bugzilla/ to /home/gtuit/giellatekno/public_html/bugzilla.bak/
- Unpack bugzilla-3.0.2: tar zxf bugzilla-3.0.2.tar.gz -C /home/gtuit/giellatekno/public_html/
- Move the new bugzilla to the correct place: mv /home/gtuit/giellatekno/public_html/bugzilla-3.0.2 /home/gtuit/giellatekno/public_html/bugzilla/
- Get settings from the old bugzilla to the new one: cp /home/gtuit/giellatekno/public_html/bugzilla.bak/localconfig /home/gtuit/giellatekno/public_html/bugzilla/.
- Start mysql: /etc/init.d/mysql start
- Run ./checksetup.pl inside /home/gtuit/public_html/bugzilla
- Open http://giellatekno.uit.no/bugzilla, and login
- Go to parameters: http://giellatekno.uit.no/bugzilla/editparameters.cgi
- Set the maintainner
- Set the urlbase to http://giellatekno.uit.no/bugzilla/
- Save the form.
- Goto My bugs: If the quips (the quote below the date) have strange characters, we have a faulty utf-8 setup.
- Fix utf-8
- Go to parameters: http://giellatekno.uit.no/bugzilla/editparameters.cgi
- Switch off utf-8, save the form.
- Run contrib/recode.pl --charset=iso-8859-1 inside /home/gtuit/public_html/bugzilla
- Go to parameters again: http://giellatekno.uit.no/bugzilla/editparameters.cgi
- Switch on utf-8 again. Save the form.
- Run ./checksetup.pl inside /home/gtuit/public_html/bugzilla
- Check if everything is working again by going to My Bugs
by Børre Gaup

