发布于 2014-12-05 14:19:00 | 11146 次阅读 | 评论: 1 | 来源: PHPERZ

这里有新鲜出炉的精品教程,程序狗速度看过来!

Apache Web服务器

Apache是世界使用排名第一的Web服务器软件。它可以运行在几乎所有广泛使用的计算机平台上,由于其跨平台和安全性被广泛使用,是最流行的Web服务器端软件。


本文向大家讲解的是 apache错误:.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration.错误解决方法,感兴趣的同学参考下。

错误描述

[Wed Nov 05 23:57:10 2014] [alert] [client 127.0.0.1] .../wamp/www/.../.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration.

错误原因

RewriteEngine命令需要rewrite mod的支持,

解决方法

$>cd /etc/apache2/mods-enabled    切换到apache下的mods-enabled目录
$>sudo ln -s ../mods-available/rewrite.load rewrite.load   启用rewrite mod
$>sudo /etc/init.d/apache2 restart    重启apache服务器。
或者在apache的配置文件httpd.conf中将#LoadModule rewrite_module modules/mod_rewrite.so前的#去掉,再重启服务器。



最新网友评论  共有(1)条评论 发布评论 返回顶部
nueo 发布于2014-12-16 17:54:53
完美,感谢分享
支持(0)  反对(0)  回复

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务