开发者社区> 问答> 正文

debian下apache2的安装及伪静态的启用

笔者在debian下安装虚拟主机控制面板!呵呵需要安装面板的可以直接找我!免费安装!上传php网站源码后出现500错误!看日志提示.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

问题出在htaccess,于是启用伪静态功能后正常。

1.安装apache2
apt-get install apache2

2.激活mod rewrite
a2enmod rewrite

3.让apache2得进程加载新配置的rewrite模块
/etc/init.d/apache2 force-reload


展开
收起
wincms 2013-05-25 11:43:35 8721 0
1 条回答
写回答
取消 提交回答
  • 楼主好人啊
    2013-05-25 13:13:37
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载