Apache开始于“/etc/httpd/conf/httpd.conf中的语法错误:无效的命令'删除'”

在我更改了php.ini最大file upload大小和最大文章大小后,重新启动Apache显示标题中的错误。 为什么? 而如何解决呢?

 # vi /etc/php.ini # service httpd restart # service httpd start Starting httpd: Syntax error on line 304 of /etc/httpd/conf/httpd.conf: Invalid command 'remove', perhaps misspelled or defined by a module not included in the server configuration 

304行如下:

 <Directory /> Options Includes Indexes FollowSymLinks MultiViews remove word Indexes Options Includes FollowSymlinks MultiViews AllowOverride None </Directory> 

del行3和4在该片段。 你的configuration应该看起来像这样

 <Directory /> Options Includes Indexes FollowSymLinks MultiViews AllowOverride None </Directory>