主要步驟:
【1】安裝mysql
# aptitude install mysql
【2】安裝perl
#aptitude install perl
【3】安裝bugzilla
#tar vxfz bugzilla-3.6.tar.gz -C /xx/bugzilla
【4】配置buzilla
# vi localconfig
把里面數據庫的配置修改正確
比如mysql的用戶名和密碼等
# ./checksetup.pl
根據系統的提示,查找缺少的包,然后安裝,不過perl的包需要用cpan安裝。
#aptitude install cpan
最難裝的可能是GD
#cpan GD
如果
#./checksetup.pl
提示所有的包都安裝了,那么,bugzilla會提示你輸入bugzilla的管理員郵箱和密碼。一定要記住。
【5】配置apache
#cp /xx/bugzilla-3.6/*.cgi /usr/lib/cgi-bin/
#cp /etc/apache2/sites-available/default
/etc/apache2/sites-available/bugzilla
#ln -s /etc/apache2/sites-available/bugzilla
/etc/apache2/sites-enabled/bugzilla
#vim /etc/apache2/sites-available/bugzilla
內容:
<VirtualHost *:8081>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/bugzilla
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/bugzilla/>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error,
crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
虛擬機的端口需要提前配置:
#vim /etc/apache/ports.conf
內容:
# bugzilla
NameVirtualHost *:8081
Listen 8081
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>
【6】重啟apache
#/etc/init.d/apache2 restart
【7】測試
http://localhost:8081/
如果出現bugzilla的頁面,就說明你配置成功了。
【8】郵件配置
用管理員的帳號登錄進去
在“管理”頁面,配置“參數”,然后配置“郵件”,就和你配置outlook一樣,配置smtp服務器,用戶名,密碼,確定,重啟apache.
就可以了。
【9】郵件配置成功驗證
在首頁,創建新用戶,如果提示發郵件到用戶郵箱,并能收到郵件,就說明郵件配置正卻。
|----------------------------------------------------------------------------------------|
版權聲明 版權所有 @zhyiwww
引用請注明來源 http://www.tkk7.com/zhyiwww
|----------------------------------------------------------------------------------------|
posted on 2010-06-03 16:19
zhyiwww 閱讀(2702)
評論(0) 編輯 收藏 所屬分類:
軟件測試 、
linux