Windows 2008 R2 64bit Apache 2.4.4 + PHP 5.5.27 配置
2015-07-25 00:01
615 查看
Apache
1.
Listen 8181
2.
#
# AllowOverridecontrols what directives may be placed in .htaccess files.
# It can be"All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
改为
AllowOverride All
3.
<Directory />
AllowOverride none
Require all denied
</Directory>
修改为:
<Directory />
# AllowOverride none
AllowOverride All
# Require all denied
Require all granted
</Directory>
4.
# php5 support
LoadModule php5_module D:/php/php5apache2_4.dll
AddType application/x-httpd-php .php .html .htm
# configure the path to php.ini
PHPIniDir "D:/php"
PHP
把后面的’-development’去掉,再用记事本打开php.ini文件,开始配置:
1. 搜索extension_dir
把
; On windows:
; extension_dir ="ext"
改为
; On windows:
extension_dir = "D:/php/ext"
2. 搜索
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll
extension=php_xmlrpc.dll
把它们都打开
支持session
session.save_path = "e:/temp"
上传文件目录配置
upload_tmp_dir ="e:/temp"
时区配置
date.timezone =Asia/Shanghai
max_execution_time = 300
在系统path上添加 D:/php/ext 和 D:/php
1.
Listen 8181
2.
#
# AllowOverridecontrols what directives may be placed in .htaccess files.
# It can be"All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
改为
AllowOverride All
3.
<Directory />
AllowOverride none
Require all denied
</Directory>
修改为:
<Directory />
# AllowOverride none
AllowOverride All
# Require all denied
Require all granted
</Directory>
4.
# php5 support
LoadModule php5_module D:/php/php5apache2_4.dll
AddType application/x-httpd-php .php .html .htm
# configure the path to php.ini
PHPIniDir "D:/php"
PHP
把后面的’-development’去掉,再用记事本打开php.ini文件,开始配置:
1. 搜索extension_dir
把
; On windows:
; extension_dir ="ext"
改为
; On windows:
extension_dir = "D:/php/ext"
2. 搜索
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll
extension=php_xmlrpc.dll
把它们都打开
支持session
session.save_path = "e:/temp"
上传文件目录配置
upload_tmp_dir ="e:/temp"
时区配置
date.timezone =Asia/Shanghai
max_execution_time = 300
在系统path上添加 D:/php/ext 和 D:/php
相关文章推荐
- Apache本地可以显示外网不可以
- linux搭建Apache服务(未经测试,先转再说)
- org.apache.jasper.JasperException: Unable to compile class for JSP
- 使用Apache commons的FileUtils类读取文本文件内容到字符串
- java.lang.NoClassDefFoundError: org/apache/commons/pool/KeyedObjectPoolFactory
- 使用Scala开发Apache Kafka应用入门
- apache相关配置问题
- apache kafka中server.properties配置文件参数说明
- 关于apache做301的问题
- 在Linux系统上查看Apache服务器的错误日志
- Apache Hadoop YARN - 项目背景与简介
- apache 配置用户级目录
- apache for mac OX S 10.10
- Apache Mahout中的机器学习算法集【小结】
- Subversion+Apache+svnmanager安装与配置
- 基于Apache axis2开发Java Web服务
- Apache rewrite配置注意事项
- Apache Thrift设计概要
- apache无法解析php解决方法
- apache commons vfs 文件夹监控