minbeef 发表于 2011-10-29 09:24:56

[分享]Win2003下iis+php+mysql+zend架设(PHPWind产品环境)

                Win2003server 下架设PHPWind产品环境

安装前准备:1、安装好iis6

            http://img1.phpwind.net/attachout/Mon_0806/2_570652_22b0d9949fabcf9.jpg?45
            
            http://img1.phpwind.net/attachout/Mon_0806/2_570652_c109a5c5c8dfd8a.jpg?144



         2、下载php环境的相应的软件

         

推荐配置:php-5.2.6-Win32.zip

     mysql-5.0.18-win32.zip

     ZendOptimizer-3.3.3-Windows-i386.exe

        

Mysql的下载地址

http://download.mysql.cn/download_file/zip/5.0/mysql-5.0.18-win32.zip

php的下载地址:

http://cn2.php.net/distributions/php-5.2.6-Win32.zip

Zend的下载地址:

http://downloads.phpchina.com/zend/optimizer/3.3.3/ZendOptimizer-3.3.3-Windows-i386.exe



第一步、安装php

解压php-5.2.6-Win32.zip为php-5.2.6-Win32,然后把其php-5.2.6-Win32更换为php,拷贝到E盘(可选)

http://img1.phpwind.net/attachout/Mon_0806/2_570652_de13115f5291ddb.jpg?47

把E:/php/下的php.ini-dist重命名改为php.ini,打开php.ini,

查找ext,把ext = "./"改为extension_dir = "E:\php\ext"

把下面这些扩展功能中的

;extension=php_gd2.dll

;extension=php_mbstring.dll

;extension=php_mysql.dll

前面的;注释给去掉,

然后拷贝php.ini到c:/windows目录第二步、iis6下加载php扩展

打开IIS管理器,点web服务扩展--添加一个新的web服务扩展,扩展名为php,在要求的文件哪里,添加一个文件路径为E:\php\php5isapi.dll的文件,在设置扩展状态为允许哪里打钩,
如下图所示
http://img1.phpwind.net/attachout/Mon_0806/2_570652_d161eb0c7de06b7.jpg?144


http://img1.phpwind.net/attachout/thumb/Mon_0806/2_570652_5c89e876fd4321d.jpg?90


http://img1.phpwind.net/attachout/Mon_0806/2_570652_bb25b2dba1a54c3.jpg?75



在网站上点右键--属性,如下图所示:

http://img1.phpwind.net/attachout/Mon_0806/2_570652_4baf8983d7bfeee.jpg?49

在ISAPI筛选器那里添加一个新的筛选器,名称:php,可执行文件还是上面的E:\php\php5isapi.dll

http://img1.phpwind.net/attachout/Mon_0806/2_570652_43e03636ce9f8cf.jpg?84

http://img1.phpwind.net/attachout/Mon_0806/2_570652_262773f54eb3fb5.jpg?133 http://img1.phpwind.net/attachout/Mon_0806/2_570652_6813b23ea22e688.jpg?30
在主目录,执行权限那里,改为脚本和可执行文件,点配置,如下图所示:

http://img1.phpwind.net/attachout/Mon_0806/2_570652_b31df31d28bd857.jpg?92

然后再点击<配置>,添加php应用程序扩展名映射


http://img1.phpwind.net/attachout/Mon_0806/2_570652_8d3b64441ee6474.jpg?135

最后点击确定。
、、、、、、、、、、、、、、、、、、、、、、、
配置默认站点

先在E盘建立wwwroot目录

http://img1.phpwind.net/attachout/Mon_0806/2_570652_818c799bc4a29e5.jpg?47



右键 默认站点--->



http://img1.phpwind.net/attachout/Mon_0806/2_570652_b6bf8bbf0076b6c.jpg?59



http://img1.phpwind.net/attachout/Mon_0806/2_570652_a5eddf70131b3e7.jpg?91





点击<属性>
把本地路径修改为 E:\wwwroot目录

执行权限 修改为 脚本和可执行文件其次 点击<文档> 选项卡
http://img1.phpwind.net/attachout/Mon_0806/2_570652_4b9743b97425820.jpg?78

第三步、安装mysql-5.0.18-win32.zip,下载到服务器桌面解压。




单击 mysql的安装程序setup.exe,选择(custom)--把mysql安装在E:/mysql目录下,进行安装如下图



http://img1.phpwind.net/attachout/thumb/Mon_0806/2_570652_5b071d986aedfd5.jpg?129





http://img1.phpwind.net/attachout/Mon_0806/2_570652_a088e98c38f5f5f.jpg?59



http://img1.phpwind.net/attachout/thumb/Mon_0806/2_570652_e28e98cfe73f7da.jpg?124



http://img1.phpwind.net/attachout/Mon_0806/2_570652_b31393f45ea5db1.jpg?70http://img1.phpwind.net/attachout/Mon_0806/2_570652_9f8b16ad5d50614.jpg?89


http://img1.phpwind.net/attachout/Mon_0806/2_570652_665597ae95b97e6.jpg?94


http://img1.phpwind.net/attachout/thumb/Mon_0806/2_570652_58cb83fad4ce091.jpg?112
上面这个截图是设置mysql的登录密码


http://img1.phpwind.net/attachout/Mon_0806/2_570652_5a68a8ac96251b1.jpg?61



点击finish 即可完成mysql的安装

安装完毕后,

我们要把mysql安装目录bin下的libmySQL.dll拷贝到C:/windows目录下(重要)第四步、下面来安装zend,双击执行ZendOptimizer-3.3.3-Windows-i386.exe



把Zend安装在E盘上,

web服务器选择iis6.0,

server root 的目录修改为 E:\wwwroot

然后全部是下一步,具体参考以下的截图



http://img1.phpwind.net/attachout/thumb/Mon_0806/2_570652_24dc66f57df9468.jpg?118



http://img1.phpwind.net/attachout/Mon_0806/2_570652_2b7ccdfd9407ec5.jpg?51







http://img1.phpwind.net/attachout/Mon_0806/2_570652_d9ac523774cd819.jpg?43



http://img1.phpwind.net/attachout/Mon_0806/2_570652_2d4ccb230d08d7a.jpg?55





然后安装程序会重新启动iis,安装完成。



第五步、到此,IIS下php的配置就完成了,在你的网站目录/wwwroot下,新建个内容为

<?php phpinfo(); ?>的phpinfo.php,

http://img1.phpwind.net/attachout/Mon_0806/2_570652_4764232e98fad19.jpg?56在服务器端,访问一下http://localhost/phpinfo.php,是否配置成功

看看能不能见到熟悉的php页面,如果看到,那么说明php配置成功了.

以下是php配置成功的截图参数主要是查看(php Zend mysql gd 库)


http://img1.phpwind.net/attachout/Mon_0806/2_570652_d656538a2198322.jpg?37



http://img1.phpwind.net/attachout/Mon_0806/2_570652_fc9eae1ce637a91.jpg?49



http://img1.phpwind.net/attachout/Mon_0806/2_570652_190cb44a374f41f.jpg?46





http://img1.phpwind.net/attachout/Mon_0806/2_570652_c73d06522a76b3a.jpg?44













第六步、安装PHPWind产品

      从http://www.phpwind.com/download.php下载PHPWind产品,解压到E:\wwwroot

      参考压缩包内的安装帮助,安装产品 即可。
也可以用apache
直接用appserv就能搭建起环境,但是,需要优化,默认的适合开发,不适合做网站

永远爱你 发表于 2015-3-9 23:27:56

这个东西不错,多谢楼主分享,已经收藏备用
页: [1]
查看完整版本: [分享]Win2003下iis+php+mysql+zend架设(PHPWind产品环境)