Install bugzilla in Solaris 10
First of all i’ve to say that i love Solaris and the other UNIX variants like GNU/Linux, but sometimes i love the easy way of Mac OSX or Windows installations too.
The first thing i did is install Solaris 10 in a x86 machine, the version i’ve used is the last one (at this time 10 6/6) and have a lot of open source software out-of-the-box like MySQL, Apache, Perl …
MySQL
I think it was one of the easiest steps of whole process. There are a file in /etc/sfw/mysql called README.solaris.mysql that explaint the entire installation.
/usr/sfw/bin/mysql_install_db
groupadd mysql
useradd -g mysql mysql
chgrp -R mysql /var/mysql
chmod -R 770 /var/mysql
installf SUNWmysqlr /var/mysql d 770 root mysql
cp /usr/sfw/share/mysql/my-medium.cnf /var/mysql/my.cnf
/etc/sfw/mysql/mysql.server start
Check the file, maybe in you version there are more steps.
Apache 2
Just copy /etc/apache2/httpd.conf-example into /etc/apache2/httpd.conf and try:
svcadm enable apache2
Now check in your browser thar Apache is serving properly.
Maybe someday i continue this history … sorry
Crap. Since this is the #1 site when googling for bugzilla and Solaris 10 I’ll fill in the blanks from my experience. I’m using Solaris 10 11/06. Starting with the steps above, I had to reset the MySql root password. See here for that process.
Next install the Bugzilla tarball (yea, I’m using 2.22.2 then upgrading to 3 - we have an existing install)
Next we need to install some software for Perl and CPAN. I’m not sure if all these are required, but CPAN asks for them, so why not. Download Lynx, Wget, Ncftp and GnuPG from Sun Freeware and install like so:
Repeat for each package.
Add /usr/local/bin to the path so we can use these new programs:
The cc compiler that comes with Solaris 10 is intended for legacy applications. If you try to install Bugzilla Perl prerequesites you’ll get endless “language optional software package not installed” errors. It’s possible to use the GCC compiler but it is much easier to install SunStudio. Download and install Sun Studio from here
Download the package installer, unzip, untar and follow the instructions in the README.txt
Add the SunStudio compiler to the path
Attempt to install the perl modules that Bugzilla depends on:
CPAN will prompt for the location of several programs. make sure make and cc point to the SunStudio versions.
Next install DBD::mysql. Make sure that mysql_config is in the path:
There’s some final configuration steps required such as creating a MySql user for the Bugzilla database and pointing Apache to the Bugzilla install. They are documented
Hope that helps!