apacheh2.4和php5.5集成环境遇到的问题
2015-12-03 14:17
573 查看
装了wampserver64位,里面的php是5.5,apache是2.4
1.配置虚拟主机时碰到问题:apache AH01630: client denied by server configuration
解决方案如下:
apache2.2的写法:
如果在2.4中使用以上写法就会有apache AH01630: client denied by server configuration错误。
修改为
修改后的配置如下:
2.路由伪静态的问题:500错误
.htaccess: Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration
.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
除了打开rewrite模块以外,还要开启mod_filter.so和mod_headers.so模块才行
解决方法,apache2.4中
1.配置虚拟主机时碰到问题:apache AH01630: client denied by server configuration
解决方案如下:
apache2.2的写法:
<VirtualHost *:80> ServerName fdipzone.demo.com DocumentRoot "/home/fdipzone/sites/www" DirectoryIndex index.html index.php <Directory "/home/fdipzone/sites/www"> Options -Indexes +FollowSymlinks AllowOverride All Order deny,allow Allow from all </Directory> </VirtualHost>
如果在2.4中使用以上写法就会有apache AH01630: client denied by server configuration错误。
Order deny,allow Allow from all Allow from host ip
修改为
Require all granted Require host ip
修改后的配置如下:
<VirtualHost *:80> ServerName fdipzone.demo.com DocumentRoot "/home/fdipzone/sites/www" DirectoryIndex index.html index.php <Directory "/home/fdipzone/sites/www"> Options -Indexes +FollowSymlinks AllowOverride All Require all granted </Directory> </VirtualHost>
2.路由伪静态的问题:500错误
.htaccess: Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration
.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
除了打开rewrite模块以外,还要开启mod_filter.so和mod_headers.so模块才行
解决方法,apache2.4中
相关文章推荐
- Windows+Apache搭建PHP开发环境
- PHP单一入口apache配置和去除index.php
- Apache服务器错误问题Internal Server Error
- apache工作模式prefork参数配置
- 以不变应万变-- 如何根据你的Apache+php版本进行正确的Xdebug配置
- Centos 7 yum 安装Apache
- 安全和权限管理-Apache Shir
- 68. 使用Apache的rewrite技术
- Apache禁止指定的user_agent、指定目录被访问
- apache伪静态规则
- java.lang.NoClassDefFoundError: org/apache/lucene/analysis/standard/StandardAnalyzer 错误
- Apache Camel rest获取GET请求的参数
- Apache Mahout 简介
- mac(osx)配置apache+mysql+php+phpmyadmin
- XAMPP安装(Apache+MySQL+PHP+PERL)
- Java课程设计笔记-用org.apache.tools.zip中的类压缩/解压zip文件
- apache与weblogic 的整合
- 新手福利:Apache Spark 入门攻略
- 关掉apache2服务器日志文件
- java.lang.ClassNotFoundException: org.apache.lucene.store.Directory