1.下载php5.2.8源码
https://windows.php.net/downloads/releases/archives/
2.在服务器解压至C:\PHP\php5.2
修改php.ini
extension_dir = "c:\php\php5.2\ext"
date.timezone = Asia/Shanghai
将libeay32.dll、libmcrypt.dll、libmhash.dll、libmysql.dll、ssleay32.dll复制到system32下
3.添加isapi限制
4.添加curl、memcache扩展
将ext下php_curl.dll组件复制到system32下
下载mamcache组件
https://windows.php.net/downloads/pecl/releases/memcache/3.0.8/
解压文件将php_memcache.dll复制到php的ext目录下,在php.ini中添extension=php_memcache.dll
5.需要开启扩展
extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_mcrypt.dll
extension=php_mhash.dll
extension=php_mime_magic.dll
;extension=php_ming.dll
extension=php_msql.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
extension=php_openssl.dll
extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;pextension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll
;extension=php_xsl.dll
extension=php_zip.dll
extension=php_memcache.dll
6.将php.ini复制到windows目录下,安装zend3.3
7.需要添加组件ntwdblib.dll、msvcr71.dll、msql.dll,安装vc9运行库.exe、VC14x86运行库.exe、vcredist_x86.exe
8.测试添加处理应用程序池脚本映射
使用星外php多版本php组件配置php5.2.17,只需要安装运行库、开启扩展