在 16.04 伺服器上安裝 bugzilla:測試警告無法找到「httpd」進程的 GID

在 16.04 伺服器上安裝 bugzilla:測試警告無法找到「httpd」進程的 GID

我正在嘗試在運行 16.04 的家庭伺服器上安裝 bugzilla。我正在使用文件我進入了第二個檢查設定階段,但在步驟 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,但我沒有看到任何關於要進行哪些更改的說明。

我發現的另一個連結是問庫本圖問題。 該連結似乎主要與“AllowOverride”值有關,我相信在我的情況下這是正確的。按照說明,我建立了一個文件/etc/apache2/sites-available/bugzilla.conf

ServerName localhost

<Directory /var/www/html/bugzilla>
  AddHandler cgi-script .cgi
  Options +ExecCGI
  DirectoryIndex index.cgi index.html
  AllowOverride All
</Directory>

在我的本機設定中,對於網頁伺服器群組,我有: $webservergroup = 'www-data';

另一件可能是也可能不是一個因素的事情;安裝過程中找不到 perl 軟體包之一。

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

謝謝你的幫忙。

一些額外的資源 錯誤 380732

更新 我透過刪除/清除 apache2 並重新安裝解決了這個問題。之後一切都很好。

相關內容