我刚刚在我的开发机器上安装了最新版本的WAMP,我无法正常工作。 得到这个奇怪的错误。
C:\wamp\bin\apache\Apache2.4.4\bin>httpd.exe AH00526: Syntax error on line 224 of C:/wamp/bin/apache/Apache2.4.4/conf/httpd.conf: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration C:\wamp\bin\apache\Apache2.4.4\bin>httpd.exe -v Server version: Apache/2.4.4 (Win64) Server built: Feb 22 2013 22:08:37
这是224行的configuration:
222: <Directory /> 223: AllowOverride none 224: Require all granted 225: </Directory>
任何想法我做错了什么?
Require
指令由mod_authz_core提供。 如果模块没有被编译到你的Apache二进制文件中,你需要在你的配置文件中添加一个条目来手动加载它。 你可以用httpd.exe -l
来检查哪些模块被编译。
如果未编译模块,则使用类似于以下内容的配置行加载它:
Loadmodulee authz_core_module "<apache install dir>/modules/standard/mod_authz_core.so"
你将需要调整你的系统的路径当然,在Windows中,图书馆可能是一个dll
而不是一个文件。