红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Debian

虚拟机debian上搭建bugzilla

发布时间:2008-08-24 00:05:58来源:红联作者:Svaurc
安装bugzilla之前,要确保debian上已经安装了mysql,apache,并且把apache服务器的DocumentRoot设置为/etc/bugzilla

1. apt-get install bugzilla

2. ubuntu下安装配置bugzilla:

sudo apt-get install mysql-server注意:需要设置mysql的root 用户的密码,注意要和以后的bugzilla的管理员密码一致
sudo apt-get install bugzilla按照需要输入管理员帐号,密码

ubuntu把需要的apache,sendmail,还有那些依赖的perl模块都一起安装了.

开始配置bugzilla

配置apache2
vi /etc/apache2/httpd.conf 添加
ServerNmae localhost:80
sudo /etc/init.d/apache2 restart

配置bugzilla
vi /etc/bugzilla/localconfig

修改相应的配置:
$webservergroup = "www-data";

#
# How to access the SQL database:
#
$db_host = "localhost"; # where is the database?
$db_port = 3306; # which port to use
$db_name = "bugs"; # name of the MySQL database
$db_user = "bugs"; # user to attach to the MySQL database
#
# Some people actually use passwords with their MySQL database ...
#
$db_pass = "1234";

#
# Should checksetup.pl try to check if your MySQL setup is correct?
# (with some combinations of MySQL/Msql-mysql/Perl/moonphase this doesn't work)
#
$db_check = 1;
$index_html = 1;

配置数据库:
mysql -u root -p1234

Create database bugs;

GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY '1234';

Flush privileges;

quit;

退出数据库;


重新生成bugzilla数据库;

cd /usr/share/bugzilla/lib/
sudo perl checksetup.pl

根据提示输入

注意:在ubuntu上安装的bugzilla的主登录窗口有点bug,需要从页面地下的login按钮进入就可以了

###搭建好后,发现注册以后收不到邮件,用邮箱注册。所以考虑是不是需要安装一个sendmail:

#atitude install sendmail

(用apt-get会有关联的问题,不知道为什么)
文章评论

共有 0 条评论