我目前正在尝试使用 CygWin 在 Windows Server 上安装 Apache2。我使用来自:here的预编译 .msi 。
要安装它,我使用以下命令: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
命令)?