无效的命令'要求',也许是由模块拼写错误或定义不包含在服务器配置 [英] Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration

查看:308
本文介绍了无效的命令'要求',也许是由模块拼写错误或定义不包含在服务器配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装在我的dev的机器上的最新版本WAMP的,我不能得到它的工作。得到这个奇怪的错误。

I've just installed the latest version of WAMP on my dev machine, and I can't get it to work. Getting this weird error.

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的配置:

This is the config at line 224:

222: <Directory />
223:    AllowOverride none
224:    Require all granted
225: </Directory>

任何想法,我做错了吗?

Any idea what I'm doing wrong?

推荐答案

要求指令通过的mod_authz_core 。如果模块没有被编译进Apache二进制文件,您将需要一个条目添加到您的配置文件手动加载它。您可以检查哪些模块编译与 httpd.exe -l <​​/ code>。

The Require directive is supplied by mod_authz_core. If the module has not been compiled into your Apache binary, you will need to add an entry to your configuration file to load it manually. You can check which modules are compiled in with httpd.exe -l.

如果该模块的的编译,类似如下的配置行加载:

If the module is not compiled in, load it with a configuration line similar to the following:

LoadModule authz_core_module    "<apache install dir>/modules/standard/mod_authz_core.so"

您将需要调整的路径,你的课程体系,并在Windows中图书馆也不失为一种 DLL 而非所以文件。

You will need to adjust the path for your system of course, and on a Windows box the library may well be a dll rather than an so file.

这篇关于无效的命令'要求',也许是由模块拼写错误或定义不包含在服务器配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆