Bugzilla Migration

I was facing problem with my existing bugzilla server, some hardware issues. I am bit confused what to do, I never done this before ever.

After googleing for some hrs I found the  solution, half part done by those search, but still it wont work. Then i took help from my boss & my system is online now.

There are two things which I wants to do!!

1. Need to transfer complete Bugzilla to another server.

2. Need to upgrade it with latest  available version.

First I have install new bugzilla & then import old data in new. Following are the steps for the same.

On New Server:-

# wget  http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-3.2.2.tar.gz  (Download Latest Version)

#tar -xvzf bugzilla-3.2.2.tar.gz (Untar)

# mv bugzilla-3.2.2 bugzilla (Rename as bugzilla)

#cp -R bugzilla /usr/local/apache2/htdocs/ (Move it to Document root of your webserver)

#chmod -R 655 bugzilla/ (Change Mode)

Now login in mysql & create database & username.

mysql> CREATE DATABASE bugs;

mysql>grant all on bugs.* to bugs@localhost identified by ‘Your Password’; (Dont forget to mention this details in localconfig)

# cd /usr/local/apache2/htdocs/bugzilla

#./checksetup.pl      (Run this file to check all dependencies are available or not)

This will ask you many questions just answer it properly, you will need administrator name, ID & localtion of perl installation. If any module is not available, it wont proceed further. Just install all required packages of perl.

If that file finished properly, you are ready with all database info & required settings.

Old Server:-

Now copy contents of data folder (“/bugzilla/data/” ) to new server’s installation directory (“/bugzilla/data/”). Also copy “localconfig” file to new server.

Take backup of you bugzilla database using  following comand:

# mysqldump –opt -u root -p bugs > bugs.sql

Copy “bugs.sql file” to new server.

New Server:

Restore sql data to mysql using following command:

# mysql -uroot -p bugs < bugs.sql

Now run that “./checksetup.pl” file again.

Go to web url & try to login with ur existing username password.

Done!!! Your new bugzilla with old data is ready…………..

This entry was posted in Administration, Linux and tagged , , , , . Bookmark the permalink.

4 Responses to Bugzilla Migration

  1. One step is wrong–don’t create the database with checksetup.pl on the new server. You should just “CREATE DATABASE bugs;” on the new server, import the mysqldump, and then run checksetup.pl.


  2. Sirmsergiet says:

    Great site this vijaylad1905.wordpress.com and I am really pleased to see you have what I am actually looking for here and this this post is exactly what I am interested in. I shall be pleased to become a regular visitor 🙂

  3. After reading through the article, I just feel that I need more information on the topic. Can you share some more resources please?

  4. Chanchal Sakarde says:

    Thanks for this great document…. really very helpful and informative

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s