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
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