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.
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.
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…………..