安装vcredist_2008.
安装apache 2.2.22
选择only for teh current user=>custom
安装MySQL5.5=>custom=>Developer Machine=>Transactional Database Only
关键部分
httpd:
PHPIniDir "D:/websoft/php5.4.4/"
LoadModule php5_module D:/websoft/php5.4.4/php5apache2_2.dll
AddType application/x-httpd_php .php .html
修改:
<IfModule dir_module>
DirectoryIndex index.php default.php index.htm index.html
</IfModule>
-----------------------------------------------------
DocumentRoot "D:/websoft/Apache2.2/htdocs/upload"
(增加upload为discuz
论坛的目录,可根据实际情况修改)
----------------------------------------------------
<Directory "D:/websoft/Apache2.2/htdocs/upload">
漏了一处:
apche 文件类型没有设置
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
Php配置文件修改
php.ini-production并改名为php.ini
extension_dir = "D:/websoft/php5.4.4/ext"
upload_tmp_dir = "D:/websoft/php5.4.4/temp"
temp目录需要手工创建。
date.timezone =Asia/shanghai
extension=php_curl.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
extension=php_xmlrpc.dll
extension=php_zip.dll
session.save_path = "D:/websoft/php5.4.4/temp"
session.cookie_path = "D:/websoft/php5.4.4/temp"
memory_limit = 128M
post_max_size = 20M
upload_max_filesize = 20M
把D:/websoft/php5.4.4/;D:/websoft/php5.4.4/ext加到系统变量的path