I will be installing the latest Bugzilla at the moment which is 4.5.2 on a fresh install of CentOS 6.5 64-Bit.
Ok, Lets get started. Launch Terminal and switch to root:
su

In order to get Bugzilla up and running, we need to install Apache, MySql, and also gcc for compiling the Bugzilla packages.
Installing Apache
yum install httpd mod_ssl

After the install is done, open port 80 in the Firewall
iptables -I INPUT -p tcp --dport 80 -j ACCEPTSave the changes to the firewall
service iptables saveStart the Apache service
service httpd startLets make sure that Apache will restart every time you restart the machine:
/sbin/chkconfig httpd on

Lets test our Apache server by opening a browser windows and type our localhost IP, 127.0.0.1:

Install MySql
yum install mysql-server mysql php-mysql

Lets make sure MySql starts at boot
chkconfig mysqld on

Start MySql
service mysqld start

Set up MySql for root access
mysql -u rootSet the root user password
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('some_new_password');Once done, exit MySql
exitInstall gcc and prep packages
yum install gcc perl* mod_perl-devel

Install Bugzilla
Now that we have all the prep work done and ready, lets go ahead and download the latest Bugzilla
wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.5.2.tar.gz

unpack the download to the apache directory
tar zxvf bugzilla-4.5.2.tar.gz -C /var/www/html/browse to the directory we just unpacked the file to and rename it to bugzilla
cd /var/www/html/
mv -v bugzilla-4.4 bugzillaLogin to MySql as root with the root password we set up earlier and create a new Database for Bugzilla
mysql -uroot -p
create database bugzilla_DB;Grant all privileges to the database we just created to a newly created database user that we will be calling bugz and password bugz
grant all on bugzilla_DB.* to bugz@localhost identified by 'bugz';Exit MySql
\qWe should be in the bugzilla directory still. Lets check for all required bugzilla modules before the install:
./checksetup.plAfter the check is done, we will see some missing modules that needs to be installed:

Type the command below to install all missing modules automatically:
/usr/bin/perl install-module.pl --allLets do a check again to make sure all the modules did install
./checksetup.plIf all is good, we will get a message to edit the localconfig file for installation.

Edit the localconfig file with your favorite text editor. Since I have GUI, I used gedit for a simple quick edit
gedit ./localconfigMake sure you input the correct database name, user, and password we created earlier in the localconfig file

Run ./checksetup.pl again
./checksetup.plIf all is well, checksetup.pl should now successfully configure Bugzilla.

Now we need to add Bugzilla to our Apache config file. Open httpd.conf with a text editor
gedit /etc/httpd/conf/httpd.confAdd the following to the end of httpd.conf file
1 |
|
2 | DocumentRoot /var/www/html/bugzilla/ |
3 |
|
4 |
5 |
|
6 | AddHandler cgi-script .cgi |
7 | Options +Indexes +ExecCGI |
8 | DirectoryIndex index.cgi |
9 | AllowOverride Limit FileInfo Indexes |
10 |
|

Lastly, we need to edit .htaccess file and comment out “Options -Indexes” line at the top by adding “#”

Lets restart our apache server and test our installation
service httpd restart

If all goes well, we should see our successfully installed Bugzilla when we browse to localhost

Hope this helps. Let me know if you have any questions.
Nessun commento:
Posta un commento