Rachel Zhang's Weblog


« Project Nevada G11n... | Main | Red Ribbon: Best... »
Saturday Jul 07, 2007

sometimes it's just a simple thing

After long time's effort, I finally installed bugzilla on our sun virtual lab.

It took me at least more than one week for installation. I tried to install it on test server first before deploying it on real server. Unfortunately, during the process of installation on test server, there were a lot of issues came out. So were for real server. Installation on each machine has different problems. At that time, I was just like fireman and where there was fire I needed to fix it as soon as possible. Now I would like to write some installation experience down for reference.

1. First download bugzilla from

http://www.bugzilla.org/download

2. Suppose it is saved to /tmp

cd /tmp

gunzip bugzilla-3.0.tar.gz

tar xvf bugzilla-3.0.tar

3. cd bugzilla-3.0

./checkpsetup.pl  //check if primary perl modules are all installed.

// if not, you need to download corresponding perl modules from www.cpan.org

4. Install downloaded perl modules.

After cd into each perl module:

perl Makefile.PL

make

make test

make install

 

5. After all perl modules installed, there will be localconfig file.

you need to set $db_name, $db_user, $db_pwd and relative tags.

6. Set up MySQL.

mysql> use mysql;

mysql> created database bugs;

mysql> GRANT ALL PRIVILLEGES TO bugs.* ON bugs@localhost IDENTIFIED BY 'pwd'

mysql> FLUSH PRIVILLEGES;

mysql> quit;

p.s If you are first time use MySQL on Solaris, you can refer to /etc/sfw/mysql/mysql.solaris.README.

7. Run checksetup.pl again.

there will dialgue come out and ask you to set administrator mail and password.

8.Configure apache, /etc/apache/httpd.conf

DocumentRoot, port, de-comment AddHandler cgi-script .cgi

add following section:

<Directory /var/www/html>
......
Options ExecCGI FollowSymLinks <---- add this line.
AllowOverride Limit <---- add this line.
</Directory>

9. Bugzilla should be accessed by web now.

 

It looks easy for the whole process, but in real installation it is possible to meet a lot of problems.

For example, you will be asked for MySQL issues. Please be sure to read mysql.solaris.README before you using MySQL.

And if you still has other problems when running checksetup.pl before setting up admin email and passwd, which

ask you to check syntax of some field id or name tag, the first thing you need to do is to upgrade your

MySQL to higher version. Don't hesitate. The first time I came across the issue which told me that ./Bugzilla/

DB/MySQL.pm has something wrong. I doubted that it was because of the version of MySQL. But I chose to look into

every line it warned and made modification. Even uncommented some functions which help set names in tables into

UTF-8 to get bugzilla installed. But it seems that is not proper way to fix the problem. On Friday I decided to upgrade

MySQL as soon as possible. I pkg-get -i mysql5 from www.blastwave.com . And all the warnings were gone. Problems were solved.

That's why it became so simple at the end. It is easy to install bugzilla on Solaris, if you have proper version of MySQL.

It tells that sometimes once you have the idea, never let it go. Try it and you will get expected result. Or you can still pursue your another plan of experiment. The essence is that if you succeed in the first trial, we win the time.
 


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed

Today's Page Hits: 26