2015-11-09
官方網站
http://www.bugzilla.org/
下載
http://www.bugzilla.org/download/
https://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-5.0.1.tar.gz
參考
https://www.bugzilla.org/docs/
https://bugzilla.readthedocs.org/en/5.0/installing/linux.html
安裝步驟大綱
Install Perl (5.10.1 or above)
Install a Database Engine
Install a Webserver
Install Bugzilla
Install Perl modules
Install a Mail Transfer Agent (Sendmail)
Configure all of the above.
快速安裝程式
#!/bin/bash echo -e "\033[31m" echo -e "Program : bugzilla-5.0.1_centos7.1x64.sh " echo -e "bugzilla-5.0.1.tar.gz Install Shell Script (CentOS 7.1 x86_64) " echo -e "by Shau-Rong Lu 2015-11-09 " 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 yum -y install bugzilla httpd mysql-server yum -y install httpd mysql-server mod_perl mod_perl-devel httpd-devel gd-devel mysql-devel graphviz patchutils gcc 'perl(Apache2::SizeLimit)' 'perl(Authen::Radius)' 'perl(Authen::SASL)' 'perl(Cache::Memcached)' 'perl(CGI)' 'perl(Chart::Lines)' 'perl(Daemon::Generic)' 'perl(Date::Format)' 'perl(DateTime)' 'perl(DateTime::TimeZone)' 'perl(DBI)' 'perl(Digest::SHA)' 'perl(Email::MIME)' 'perl(Email::MIME::Attachment::Stripper)' 'perl(Email::Reply)' 'perl(Email::Sender)' 'perl(Encode)' 'perl(Encode::Detect)' 'perl(File::MimeInfo::Magic)' 'perl(File::Slurp)' 'perl(GD)' 'perl(GD::Graph)' 'perl(GD::Text)' 'perl(HTML::FormatText::WithLinks)' 'perl(HTML::Parser)' 'perl(HTML::Scrubber)' 'perl(IO::Scalar)' 'perl(JSON::RPC)' 'perl(JSON::XS)' 'perl(List::MoreUtils)' 'perl(LWP::UserAgent)' 'perl(Math::Random::ISAAC)' 'perl(MIME::Parser)' 'perl(mod_perl2)' 'perl(Net::LDAP)' 'perl(Net::SMTP::SSL)' 'perl(PatchReader)' 'perl(SOAP::Lite)' 'perl(Template)' 'perl(Template::Plugin::GD::Image)' 'perl(Test::Taint)' 'perl(TheSchwartz)' 'perl(URI)' 'perl(XMLRPC::Lite)' 'perl(XML::Twig)' # 一堆找不到
#CentOS 6.x
#chkconfig iptables off#service iptables start #iptables -I INPUT -p tcp –dport 80 -j ACCEPT #service iptables save #service iptables stop # 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 rpm -Uvh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm yum -y install perl* mod_perl mod_perl-devel # service httpd start # chkconfig httpd on
/bin/systemctl start httpd.service
systemctl enable httpd.service
systemctl status httpd.service
# 設定 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 "Failed !" exit fi # 安裝 BugZilla cd /usr/local/src wget https://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-5.0.1.tar.gz tar zxvf bugzilla-5.0.1.tar.gz -C /var/www/html cd /var/www/html mv bugzilla-5.0.1 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 5.0.1 缺陷管理系統 快速安裝程式(CentOS 7.1 x86_64)
http://shaurong.blogspot.tw/2015/11/bugzilla-501-centos-71-x8664.html
[研究] Testopia 測試案例 (Test Case) 管理系統(CentOS 7.0 x86_64)
http://shaurong.blogspot.tw/2014/09/testopia-test-case-centos-70-x8664.html
[研究] 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
沒有留言:
張貼留言