2014-09-01
官方網站
http://www.bugzilla.org/
下載
http://www.bugzilla.org/download/
http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.5.tar.gz
參考
http://www.bugzilla.org/docs/4.4/en/html/
安裝步驟大綱
Install Perl (5.8.1 or above)
Install a Database Engine
Install a Webserver
Install Bugzilla
Install Perl modules
Install a Mail Transfer Agent (Sendmail 8.7 or above, or an MTA that is Sendmail-compatible with at least this version)
Configure all of the above.
快速安裝程式
#!/bin/bash echo -e "\033[31m" echo -e "Program : bugzilla-4.4.5_centos6.5x64.sh " echo -e "bugzilla-4.4.5.tar.gz Install Shell Script (CentOS 6.5 x86_64) " echo -e "by Shau-Rong Lu 2014-09-01 " echo -e "\033[0m" /usr/sbin/setenforce 0 sed -i -e "s@SELINUX=enforcing@#SELINUX=enforcing@" /etc/selinux/config sed -i -e "s@SELINUX=permissive@#SELINUX=permissive@" /etc/selinux/config sed -i -e "/SELINUX=/aSELINUX=disabled" /etc/selinux/config service iptables stop #chkconfig iptables off iptables -I INPUT -p tcp –dport 80 -j ACCEPT service iptables save # CentOS 6.5 x86_64 #yum -y install httpd mysql mysql-server perl gcc gcc-c++ perl-CPAN mod_perl mod_perl-devel mod_ssl sendmail perl-GD* perl-Net-SMTP-SSL # CentOS 7.0 x86_64 yum -y install httpd mariadb mariadb-server perl* gcc gcc-c++ perl-CPAN mod_perl mod_perl-devel mod_ssl sendmail perl-GD* perl-Net-SMTP-SSL perl-version perl-DateTime* perl-Email-Address #No package mod_perl available. #No package mod_perl-devel available. #fcgi-perl 安裝 #wget http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm #rpm -Uvh epel-release-6-8.noarch.rpm #yum -y istall fcgi-perl rpm -Uvh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm yum -y install perl* mod_perl mod_perl-devel service httpd start chkconfig httpd on # 設定 MySQL root 密碼為 654321 (你可以變更) #service mysqld start #chkconfig mysqld on systemctl start mariadb systemctl enable mariadb systemctl status mariadb /usr/bin/mysqladmin -u root password '654321' /usr/bin/mysqladmin -u root -h localhost.localdomain password '654321' -p654321 # 建立 bugs 資料庫,建立帳號 bugs /密碼 123456 mysql -e "CREATE DATABASE bugs;" -uroot -p654321 mysql -e "GRANT SELECT, INSERT,UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY '123456';" -uroot -p654321 #mysql -e "GRANT ALL PRIVILEGES ON bugs.* TO 'bugs'@'localhost';" -uroot -p654321 mysql -e "flush privileges;" -uroot -p654321 mysql -e "show databases;" -uroot -p654321 mysql -e "show databases;" -ubugs -p123456 if [ "$?" != "0" ]; then echo "Snort Test Failed !" exit fi # 安裝 BugZilla cd /usr/local/src wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.5.tar.gz tar zxvf bugzilla-4.4.5.tar.gz -C /var/www/html cd /var/www/html mv bugzilla-4.4.5 bugzilla cd /var/www/html/bugzilla/ # 檢查 BugZilla 需要的模組安裝情況 # ./checksetup.pl --check-modules # 安裝 bugzilla 所需的 perl 相關模組,有些會因為目前 OS 中相關套件版本關係無法安裝,或因為 yum 已經安裝的 perl 模組順序,導致無法安裝 # perl install-module.pl --all 安裝 perl-CPAN 會失敗,只好之前先用 yum 安裝 # 安裝 BugZilla 需要的全部模組,會自動上網下載和編譯,要花些時間 (可能因為某些原因,部分無法安裝成功) perl install-module.pl --all # 檢查 bugzilla 所需相關模組情況 ./checksetup.pl --check-modules # 產生 localconfig,如果產生失敗,回去 ./checksetup.pl --check-modules 檢查少了甚麼 (有些是必須的,有些可有可無) perl checksetup.pl #vi /var/www/html/bugzilla/localconfig #修改以下內容: # $db_host = "localhost"; # $db_name = "bugs"; # $db_user = "bugs"; # $db_pass = "123456"; (預設是空,記得要改) # $db_port = 3306; (預設 0,記得要改) sed -i -e "s@db_pass = ''@db_pass = '123456'@" /var/www/html/bugzilla/localconfig sed -i -e "s@db_port = 0@db_port = 3306@" /var/www/html/bugzilla/localconfig # 會要求設定帳號(Email)、真實姓名、密碼 perl checksetup.pl # CentOS 7.0 的 MariaDB,checksetup.pl 無法處理 # 修改 httpd.conf #vi /etc/httpd/conf/httpd.conf echo ' <Directory /var/www/html/bugzilla> AddHandler cgi-. .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi index.html AllowOverride All #AllowOverride Limit AddHandler cgi-script .cgi order deny,allow Allow from all </Directory>' >> /etc/httpd/conf/httpd.conf # 修改 .htaccess # vi /var/www/html/bugzilla/.htaccess # 重新啟動,讓 Apache Web Server 相關設定生效 service httpd restart firefox http://localhost/bugzilla & # 如果失敗,檢查 /var/log/httpd/error_log 內容 |
(完)
相關
[研究] BugZilla 4.4.5 缺陷管理系統 快速安裝程式 (CentOS 7.0 x86_64)
http://shaurong.blogspot.com/2014/09/bugzilla-445-centos-70-x8664.html
[研究] BugZilla 4.4.5 缺陷管理系統 快速安裝程式 (CentOS 6.5 x86_64)
http://shaurong.blogspot.com/2014/09/bugzilla-445-centos-65-x8664.html
沒有留言:
張貼留言