IIS下安装PHP4及MySQL

来源:互联网 发布:软件架构师认证 编辑:程序博客网 时间:2024/05/22 15:47
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
我的PHP4和MySQL的软件包是PHP-4.0.1pl2-Win32.zip、MySQL-3.23.19-beta-win.zip。

  1、先安装MySQL,用winzip8.0打开软件包进行完全安装,默认安装路径为:c:/MySQL

  2、安装完成后,打开“开始”按钮中的“运行”,输入命令:C:/MySQL/bin/MySQLd-nt.exe --install,并执行;

  3、打开“开始”按钮下的“程序”=》“管理工具”=》“服务”,找到“MySQL”服务,启动它;

  4、至此,MySQL安装完成,重启win2000adanced server。您还可以打开C:/MySQL/bin/winMySQLadmin.exe,在第一次用它时,需要建立管理员名及密码,我分别设置为root和(yourpassword)。关闭它后,程序自动在状态行下建立一个“红绿灯”的小图标。

  5、现在开始安装PHP4,将软件包先用winzip解压到c:/PHP4下,再将目录下的所有dll文件拷到c;/winnt/system32下,不要覆盖已有的dll文件;接着将目录下的PHP.exe和PHP.ini-dist两个文件拷到c:/winnt下;

  6、将c:/winnt/PHP.ini-dist改名为PHP.ini,并打开它,找到;Windows Extensions,将

   extension=PHP_calendar.dll
   extension=PHP_zlib.dll
   extension=PHP_ldap.dll

   前的“;”去掉,关闭该文件。

  7、打开“开始”按钮下的“程序”=》“管理工具”=》“internet服务管理器”,选中“默认web站点”,打开它的“属性”窗口。在“web站点”页下,改变“IP地址”:“全部未分配”为“(您机子的ip地址,例如:202.195.243.131)”;“TCP端口”为“80”。

  8、接着,选中“主目录”页,单击“应用程序设置”下的“配置”按钮后,在新窗口下单击“添加”按钮;在“可执行文件”中输入“C:/WINNT/PHP.exe %s %s”,在“扩展名”中输入“.PHP”,点击“确定”。

  9、接着,选中“ISAPI筛选器”页,单击“添加”按钮;在“筛选器名称”中输入“PHP”,在“可执行文件”中输入“C:/WINNT/system32/PHP4isapi.dll”,点击“确定”。

  10、接着,选中“文档”页,单击“添加”按钮;在“默认文档名”中输入“index.PHP”,点击“确定”,并将其提高到最高级。您还可以添加常用的PHP文件名,如:“default.phtml”、“index.PHP3”等。

  11、关闭所有窗口,重启系统后,可打开IE浏览器进行测试。
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
原创粉丝点击