在16.04服务器上安装bugzilla:TEST-WARNING无法找到’httpd’进程的GID

我正在尝试在运行16.04的家庭服务器上安装bugzilla。 我正在使用文档 ,我起了第二个checksetup阶段,但在步骤3.1.11中遇到了问题。 测试服务器。

运行testserver.pl脚本时,我收到以下错误:

$ sudo perl testserver.pl http://localhost/bugzilla TEST-WARNING Failed to find the GID for the 'httpd' process, unable to validate webservergroup. TEST-FAILED Fetch of images/padlock.png failed Your web server could not fetch http://localhost/bugzilla/images/padlock.png. Check your web server configuration and try again. 

谷歌搜索,我发现了一些链接, 从这一个开始。 该链接指示查看testserver.pl脚本中的几行:

 my @pscmds = ('ps -eo comm,gid', 'ps -acxo command,gid', 'ps -acxo command,rgid'); 

 if ($line =~ /^(?:\S*\/)?(?:httpd|apache)2?\s+(\d+)$/) { 

它表示在shell中手动运行每个ps命令并查看输出。 果然,httpd | apache不会返回任何内容。 在该页面的某处有一些截断名称的讨论:

 It looks to me like it's the truncation of the names that is causing the problem? Note it's '/usr/sbin/apach' which is returned I also note that /usr/sbin/apach sometimes gets a GID of 33 sometimes of 0 

我的ps输出也显示/usr/sbin/apach ,但我没有看到任何更改的说明。

我找到的另一个链接是askubuntu问题。 该链接似乎主要关注“AllowOverride”值,我相信在我的情况下是正确的。 根据说明,我创建了一个文件/etc/apache2/sites-available/bugzilla.conf

 ServerName localhost  AddHandler cgi-script .cgi Options +ExecCGI DirectoryIndex index.cgi index.html AllowOverride All  

在我的本地配置中,对于webserver组我有:$ webservergroup =’www-data’;

另一件可能是也可能不是因素; 在安装过程中找不到其中一个perl软件包。

 E: Package 'apache2-mpm-prefork' has no installation candidate 

谢谢你的帮助。

一些额外的资源 错误380732

更新我通过删除/清除apache2并重新安装来解决此问题。 之后一切都很好。