您的位置:首页 > 运维架构 > Apache

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: