1. 安裝Apache
2. 安裝MySQL
新建數據庫:
create database bugs; use bugs; GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY "123"; FLUSH PRIVILEGES;
3. 安裝Bugzilla
解壓bugzilla-4.4.2.tar.gz到/var/www,重命名爲bugzilla
4. 安裝perl模塊
配置CPAN
運行perl -MCPAN -e shell
Would you like to configure as much as possible automatically? [yes] What approach do you want? (Choose 'local::lib', 'sudo' or 'manual') [local::lib] Would you like me to automatically choose some CPAN mirror sites for you? (This means connecting to the Internet) [yes]no Would you like to pick from the CPAN mirror list? [yes]no Please enter your CPAN site: []http://www.cpan.org
如果下載不了,可以設置cpan代理:
cpan> o conf http_proxy http://172.21.2.33:808 cpan> o conf commit cpan> reload index
在bugzilla文件夾裏
./checksetup.pl /usr/bin/perl install-module.pl –all
如需安裝apxs,用命令sudo apt-get install apache2-threaded-dev
5. 配置Bugzilla
修改localconfig:
$index_html = 1; $db_pass = '123'; $webservergroup = 'www-data';
6. 修改Apache配置
sudo vim /etc/apache2/sites-available/default
<Directory "/var/www/bugzilla/"> AddHandler cgi-script .cgi Options +Indexes +ExecCGI +FollowSymLinks DirectoryIndex index.cgi AllowOverride None Order allow,deny Allow from all </Directory>
7. 重啓Apache和MySQL
sudo /etc/init.d/apache2 restart sudo /etc/init.d/mysql restart
8. 漢化
解壓bugzilla-cn-4.4.zip到bugzilla目錄下的template