windows 2003 sp2_r2 IIS+PHP+MYSQL 环境配置
windows 2003 sp2_r2 IIS+PHP+MYSQL 环境配置下载位置:
http://www.phpchina.com/download/
使用版本:
mysql-5.1.30-win32.zip
php-5.2.9-1-Win32.zip
IIS 6
安装:
在windows系统,添加删除程序处,添加组件 ,安装IIS 略
mysql 根据需要配置安装 ,略
php-5.2.9-1-Win32.zip,解压到D:\PHP5
libmysql.dll、libmcrypt.dll 复制到C:\windows
php.ini-dist 复制到C:\windows ,该名为 php.ini
内容作如下修改:
extension_dir=”c:\php5\ext”
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_mbstring.dll
extension=php_mcrypt.dll
;session.save_path = "/tmp"
session.save_path = "d:/phpsession"
; Initialize session on request startup.
session.auto_start = 1
配置IIS对PHP的支持
1、添加一个WEB服务器扩展如下:
http://liubin.blog.运维网.com/attachment/200904/200904061238991507828.jpg
然后新建一个站点具体设置如下:
给站点添加
http://liubin.blog.运维网.com/attachment/200904/200904061238991746781.jpg
配置
http://liubin.blog.运维网.com/attachment/200904/200904061238991911375.jpg
--
http://liubin.blog.运维网.com/attachment/200904/200904061238991978875.jpg
--
设置首页测试:
http://liubin.blog.运维网.com/attachment/200904/200904061238992067406.jpg
index.php 内容如下:
页:
[1]