終于要到一臺新的項目服務器,把舊的東西一一挪到新服務器上來。在挪bugzilla的時候遇到一些問題。原來的服務器上面裝的是2.18rc2版,使用的漢化模版卻是2.18rc3版的,在老服務器上工作良好,但是在新服務器上中文版的模版無論如何都無法在IIS上發(fā)布出來,始終報告一個訪問拒絕錯誤。去下了2.18rc3版的bugzilla過來,仍是相同的問題。本來就看著IIS很不爽了,試了幾次不成功,換apache試試,結果和IIS搶端口了,干脆就把IIS給卸了。
跟著http://www.bugzilla.org/docs/win32install.html 一步一步來。做到最后發(fā)布的時候沒有看到發(fā)布成功的首頁,卻看到了一個錯誤頁面。進Program Files\Apache Group\Apache2\logs下面看error.log:
[Tue Mar 15 18:55:04 2005] [notice] Child 4488: Starting 250 worker threads.
[Tue Mar 15 18:55:10 2005] [error] [client 127.0.0.1] (OS 3)系統(tǒng)找不到指定的路徑。 : couldn't create child process: 720003: index.cgi
[Tue Mar 15 18:55:10 2005] [error] [client 127.0.0.1] (OS 3)系統(tǒng)找不到指定的路徑。 : couldn't spawn child process: C:/bugzilla-2.18/index.cgi
[Tue Mar 15 18:59:05 2005] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Mar 15 18:59:05 2005] [notice] Child 4488: Exit event signaled. Child process is ending.
[Tue Mar 15 18:59:06 2005] [notice] Child 4488: Released the start mutex
couldn't create child process —— 原來是無法創(chuàng)建子過程。看來是沒有找到perl.exe。在這個問題上,安裝指南說:
In order for ScriptInterpreterSource Registry-Strict to work, you also need to add an entry to the Registry so Apache will use Perl to execute .cgi files.
Create a key HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command with the default value of the full path of perl.exe with a -T parameter. For example C:\Perl\bin\perl.exe -T
Create a key HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command嘛,所以我就創(chuàng)建了HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI項然后在下面加了一個Command的key。不過既然出錯了,不妨試試另一種理解,創(chuàng)建一個HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command項,再在下面的默認key上給了一個C:\Perl\bin\perl.exe -T 。重起apache。果然就ok了。應該這段文檔的描述是有問題的。
最后上http://www.glob.com.au/sendmail/ 下載了sendmail,解壓到C:\usr\lib下,在sendmail.ini里面修改smtp_server、default_domain、auth_username、auth_password(后面兩項默認的被用分號注釋掉,如果使用的smtp需要身份驗證的話就去掉分號并填上正確的用戶名密碼),把服務器防火墻的25端口打開。試試改個bug,郵件就發(fā)出去了,大功告成。
[
點擊此處收藏本文]