分页: 1 / 1

[问题]关于bugzilla的apache配置问题

发表于 : 2006-11-09 15:39
uniquesail
安装了bugzilla后,修改了apache的httpd.conf配置文件,
下面是我在httpd.conf配置文件中做的修改:

1)修改AddDefaultCharset ISO-8859-1
为 AddDefaultCharset GB2312
2)去掉了AddHandler cgi-script .cgi的注释
3)在DirectoryIndex 后添加了 index.cgi,即DirectoryIndex index.cgi
4)添加Alias /bugzilla/ "/var/www/html/bugzilla/"
<Directory "/var/www/html/bugzilla">
Options ExecCGI Indexes
AllowOverride Limit
Order allow,deny
Allow from all
</Dircetory>

然后重起了服务。

在浏览器里访问http://localhost/bugzilla/index.cgi,不显示登录页面,在error_log错误日志里提示

[Tue Oct 31 09:53:00 2006][error] [client 192.168.0.134] (13)Permission denied: exec of '/var/www/html/bugzilla/index.cgi'failed

[Tue Oct 31 09:53:00 2006][error] [client 192.168.0.134] Premature end of script headers:index.cgi

不知道哪错了。
此外,我的权限设置如下:chown -R apache:apache /var/www/html/bugzilla
chmod -R 755 /var/www/html/bugzilla


还有一点就是我的linux是在vmware虚拟机中搭建的,不知有没有影响。

我的apache的版本是Apache 2.2.0。

希望有高手赐教!小女子万分感激! :(

发表于 : 2006-11-11 18:44
surroad
mm啊,很少见哦,呵呵。。

发表于 : 2006-12-09 13:43
wishs
不明白

发表于 : 2006-12-09 13:43
wishs
不明白 :oops:

发表于 : 2007-11-27 14:18
yibuyiqu
我是用ubuntu直接apt-get装的,不用配置就能用

Re: [问题]关于bugzilla的apache配置问题

发表于 : 2008-11-22 16:04
爱上那只猪
* 配置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按钮进入就可以了