Enable Windows hosts to support PHP and MySQL in IIS

Source: Internet
Author: User
Tags ini mysql in php and php and mysql require win32
First, the php compressed package (PHP4.3.2 here for example) decompress to C: php-4.3.2-Win32 directory, and then find a named php. ini-recommended file, rename it php. ini.

2. Open the file and find extension_dir = ". /", change it to extension_dir =" C: php-4.3.2-Win32extensions "; then find the session. save_path =/tmp and change it to session. save_path = C: php-4.3.2-Win32sessions. (Note: Now you need to create the sessions folder under the C: php-4.3.2-Win32 directory to store the session .)

3. Copy the modified php. Ini file to the C: winnt Directory, copy the php4ts. dll file under C: php-4.3.2-Win32 to the C: winntsystem32 directory.


4. Open "Internet service manager", select the site that you want to support PHP, open the properties page, click the "ISAPI filter" tab, and click "add ", fill in "php" in the "filter name" in the pop-up "filter properties" window; fill in "C: php-4.3.2-Win32sapiphp4isapi.dll" in "executable files" (as shown in the figure below ), click OK.


  五、点击“主目录”选项卡,选择“应用程序设置”中的“配置”按钮,在弹出的“应用程序配置”窗口中点击“添加”按钮,在弹出的“添加/编辑应用程序扩展名映射”窗口中的“可执行文件”中填入“C:php-4.3.2-Win32sapiphp4isapi.dll”,“扩展名”一项填入“php”(如下图所示)。
  
  OK,一切搞定,重起IIS,到你的页面文件目录下写一个phpinfo。
  
  <?php
  phpinfo();
  ?>
  
  1、MYSQL的安装双击文件解压,双击setup.exe安装,默认路径为C:mysql。
  
  在c: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不需任何设置,直接安装即可
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

11.11 Big Sale for Cloud

Get Unbeatable Offers with up to 90% Off,Oct.24-Nov.13 (UTC+8)

Get It Now >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.