欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

zf中Invalid command 'RewriteEngine'错误的解决办法

程序员文章站 2022-06-05 16:29:35
...
zend framework tutorial,运行例子,报如下的错误:The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

zend framework tutorial,运行例子,报如下的错误: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

查看apache错误日志文件error.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,取消其前面的注释即可。