今天部署一个PHP程序的时候,运行错误,看了下apache log,出现了如下的错误:

Invalid command ‘RewriteEngine’, perhaps mis-spelled or defined by a module not included in the server configuration

解决办法:

打开httpd.conf ,取消 LoadModule rewrite_module modules/mod_rewrite.so前的注释