Php HTTPD重新启动错误:无效命令';需要';,可能拼写错误或由模块定义

Php HTTPD重新启动错误:无效命令';需要';,可能拼写错误或由模块定义,php,apache,config,require,Php,Apache,Config,Require,我将PHP升级到7.1.30(Apache版本为2.4),重新启动时出现以下错误: Starting httpd: AH00526: Syntax error on line 26 of /etc/httpd/conf.d/autoindex.conf: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration 所讨论的需求如下所示:

我将PHP升级到7.1.30(Apache版本为2.4),重新启动时出现以下错误:

Starting httpd: AH00526: Syntax error on line 26 of /etc/httpd/conf.d/autoindex.conf:
Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
所讨论的需求如下所示:

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymlinks
    AllowOverride None
    Require all granted
</Directory>

选项索引多视图跟随符号链接
不允许超限
要求所有授权
希望HTTPD能够干净地启动

在这个网站上有一个类似的问题/答案,但这是在Windows上,指的是httpd.conf与autoindex.conf。我在Linux上:

Linux ip-10-149-85-249 4.14.121-85.96.amzn1.x86_64#1 SMP星期三5月22日00:45:50 UTC 2019年x86_64 x86_64 GNU/Linux可能重复