我要投稿
  • 您当前的位置:365bet官方 -> 技术教程 -> 服务器网络 -> 服务器教程 -> IISApache教程 -> 教程内容
  • [ 收藏本页教程 ]
  • 在WIN主机IIS上支持PHP和MySQLIISApache教程

    教程作者:佚名    教程来源:不详   教程栏目:IISApache教程    收藏本页
    一、首先把php的压缩包(这里以PHP4.3.2为例)解压到C:\php-4.3.2-Win32目录中,然后从其中找到一个叫php.ini-recommended的文件,把他更名为php.ini。


    二、打开该文件,找到extension_dir="./",将其改为extension_dir="C:\php-4.3.2-Win32\extensions";再找到session.save_path=/tmp,将其改为session.save_path=C:\php-4.3.2-Win32\sessions。(注:此时你需要在C:\php-4.3.2-Win32目录下建立sessions文件夹,以存放session。)


    三、将修改好的php.ini文件拷贝至C:\winnt目录下,将C:\php-4.3.2-Win32下的php4ts.dll文件拷贝到C:\winnt\system32目录下。

    screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/jishu/UploadPic/2006-6/2006618202716106.jpg');}" src="/images/jishuUploadPic2006-62006618202717309.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>

    四、打开“Internet服务管理器”,选择你想支持PHP的站点,打开属性页,点击“ISAPI筛选器”选项卡,点击“添加”,在弹出的“筛选器属性”窗口的“筛选器名称”中填入“php”;在“可执行文件”中填入“C:\php-4.3.2-Win32\sapi\php4isapi.dll”(如下图图所示),点击确定。

    screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/jishu/UploadPic/2006-6/2006618202717128.jpg');}" src="/images/jishuUploadPic2006-62006618202717180.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>

    五、点击“主目录”选项卡,选择“应用程序设置”中的“配置”按钮,在弹出的“应用程序配置”窗口中点击“添加”按钮,在弹出的“添加/编辑应用程序扩展名映射”窗口中的“可执行文件”中填入“C:\php-4.3.2-Win32\sapi\php4isapi.dll”,“扩展名”一项填入“php”(如下图所示)。
    OK,一切搞定,重起IIS,到你的页面文件目录下写一个phpinfo。

    <?php
    phpinfo();
    ?>  
    1、MYSQL的安装双击文件解压,双击setup.exe安装,默认路径为C:\http://www.chinahtml.com/databases/3/' target=_blank>mysql。
    在c:\http://www.chinahtml.com/databases/3/' target=_blank>mysql下有一个文件my-example.cnf改名为my.cnf拷贝到c:\下面.
    2、phpMyAdmin的安装双击文件解压到c:\phpMyAdmin.
    用PHPED把c:\phpMyAdmin下的config.inc.php3打开,把第65行的“require("english.inc.php3");”改为“require("chinese_gb.inc.php3");”。

    现在你的IIS已经完全支持PHP+MYSQL了

    注:MYSQL不需任何设置,直接安装即可
  • 上一篇:WAP 服务器设置IISApache教程
  • 下一篇:服务器开机无显示应怎么办?IISApache教程
  • 加入收藏】【告诉好友】【 】【打印此文】【回到顶部】【关闭窗口
    我要投稿   -   广告合作   -   关于本站   -   友情连接   -   网站地图   -   联系我们   -   版权声明   -   设为首页   -   加入收藏   -   网站留言
    Copyright © 2009 - 20012 www.www.ct131.com All Rights Reserved.365bet官方 版权所有