0

現在、CygWin を使用して Windows サーバーに Apache2 をインストールしようとしています。ここでは、コンパイル済みの .msi from: hereを使用します。

インストールするには、次のコマンドを使用します。Msiexec /i httpd-2.2.22-win32-x86-openssl-0.9.8t.msi INSTALLDIR="C:\\Apache2" SERVERADMIN="mail@example.com" SERVERNAME="example.com" SERVERDOMAIN="example.com" /qn

ただし、指定SERVERADMINされたものは構成ファイルに設定されません。ドキュメンテーションはそう言っていますが。を呼び出すと、次のhttpd.exeように応答します。 Syntax error on line 163 of C:/Apache2/conf/httpd.conf: ServerAdmin takes one argument, The email address of the server administrator

構成は次のようになります。

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin 
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName :80

明らかにServerAdminと もServerNameインストーラーによって設定されません。

何をすべきか考えはありますか?フォールバックとして、Config で直接設定することもできます。何かすることはありますかCommand Line(GUI は使用できませんが、CygWinコマンドは使用できます)。

4

1 に答える 1

0

Well, after writing this Question, the Answer immediately popped up in front of me. If you uninstall Apache with msiexec /x, it won't remove the old ConfigFiles. If you reinstall it on the same directory, it will just take the old Configs, no matter, what you pass the installer.

于 2013-02-27T14:51:32.803 に答える