Syntax error on line 133 httpd.conf: ServerAdmin takes one argument
启动Apache Start时出现异常:
Syntax error on line 198 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf:
ServerAdmin takes one argument, The email address of the server administrator
解决方法:
打开Apache2.2\conf下的httpd.conf文件,
将
# 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 改为:
# 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
其实就是加上 “#”
本文解决了一个常见的Apache启动问题:在httpd.conf配置文件中ServerAdmin参数设置错误导致的语法异常。通过正确添加注释符“#”,确保了ServerAdmin一行只包含一个参数,即管理员邮箱地址。
1588

被折叠的 条评论
为什么被折叠?



