«
apache Internal Server Error 解决方法

时间:2022-1-5    作者:范文泉    分类: 运维


提示Internal Server Error错误

检查apache的错误日志.H:\php\Apache24\logs\cms-error_log为

[Thu Jan 06 01:19:55.024223 2022] [core:alert] [pid 7740:tid 1464] [client 127.0.0.1:8005] H:/fan/branches/cms/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

因为RewriteEngine命令需要rewrite mod的支持,因此在apache的配置文件httpd.conf中将#LoadModule rewrite_module modules/mod_rewrite.so前的#去掉,再重启服务器。