CentOS安裝Bugzilla 4.5.2

來源:互聯網
上載者:User

CentOS安裝Bugzilla 4.5.2

前提安裝好mysql資料庫以及centos系統內建的Apache伺服器

1.準備所需的依賴包

sudoyuminstallhttpdmod_sslmysql-servermysqlphp-mysqlgccperl*mod_perl-devel

2.下載並配置Bugzilla

wgethttp://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.5.2.tar.gz

下載後解壓進入到解壓目錄下執行

./checksetup.pl--check-modules

檢查完成之後,我們會發現缺少了一些組件,我們需要安裝它們,用以下命令即可實現:

/usr/bin/perlinstall-module.pl--all

再次運行

./checksetup.pl--check-modules

命令來驗證有沒有漏裝什麼。

執行./checksetup.pl命令在解壓目錄下產生一個名為localconfig的檔案,修改裡面mysql資料庫相關參數如下:主要修改資料庫名,使用者名稱和密碼

再運行./checksetup.pl如果一切正常,checksetup.pl現在應該就成功地配置Bugzilla了

3.配置Apache伺服器(系統內建無需安裝)

/etc/httpd/conf/httpd.conf添加

<VirtualHost*:80>DocumentRoot/opt/bugzilla-4.5.2#軟體解壓目錄</VirtualHost><Directory/opt/bugzilla-4.5.2>AddHandlercgi-script.cgiOptions+Indexes+ExecCGIDirectoryIndexindex.cgiAllowOverrideLimitFileInfoIndexes</Directory>

在.htaccess (位於/opt/bugzilla-4.5.2下)檔案中用“#”注釋掉頂部“Options -Indexes”這一行

如果不去掉訪問會報錯/var/log/httpd/error_log

4.啟動伺服器並訪問

servicehttpdstart

訪問http://192.168.1.139:80/即可

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.