打开 httpd.conf 文件 加入以下配置
以php模块配置apache2.2.x
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL by hooyes
PHPIniDir "D:/php-5.2.6-Win32/"
LoadFile D:/php-5.2.6-Win32/php5ts.dll
LoadFile D:/php-5.2.6-Win32/libmysql.dll
LoadFile D:/php-5.2.6-Win32/ntwdblib.dll
LoadModule php5_module "D:/php-5.2.6-Win32/php5apache2_2.dll"
AddType application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL by hooyes
PHPIniDir "D:/php-5.2.6-Win32/"
LoadFile D:/php-5.2.6-Win32/php5ts.dll
LoadFile D:/php-5.2.6-Win32/libmysql.dll
LoadFile D:/php-5.2.6-Win32/ntwdblib.dll
LoadModule php5_module "D:/php-5.2.6-Win32/php5apache2_2.dll"
AddType application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
D:/php-5.2.6-Win32/
为php程序包的目录,根据具体情况修改
其它:
IIS 配置 php 支持:
微软官方已提供 IIS php 支持:
登录:http://php.iis.net/ 即可轻松获取安装包