[问题]关于bugzilla的apache配置问题
发表于 : 2006-11-09 15:39
安装了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。
希望有高手赐教!小女子万分感激!
下面是我在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。
希望有高手赐教!小女子万分感激!