| Register | Forget password
Tech - Reading a topic
<<  <  1  >  >>

IIS7+PHP5+MySQL on Windows Vista

good(0) bad(0) view(6437) comments(0)
Wen Send a message to Wen Send an email to Wen
poster face
Level: ◆◆◆◆◇◇◇

Currently Apache doesn't work on Windows Vista. The problem is that the setup program cannot add Apache as a Windows service. Instead of waiting for the developers to fix this problem or hacking it yourself, you can install PHP5 onto IIS7 rather than Apache. Here's the process (PHP4 doesn't work in this way):

  1. Install MySQL as in Windows XP. MySQL 4.1 or above works on Windows Vista.
  2. Install IIS7

    1. Go to Control Panel->Programs, click "Turn Windows features on or off" in the "Programs and Features" section.
    2. In the popped up window, check "Internet Information Services". Then expand it, and go to "Internet Information Services"->"World Wide Web Services"->"Application Development Features", check "ISAPI Extensions".
    3. Confirm/close all windows. To check if IIS7 is working, open your browser and try to access http://localhost

  3. Install PHP5

    1. Download PHP5 Windows binary zip package, which can be found at http://www.php.net/downloads.php
    2. Extract files in the zip package to a folder. Suppose it's C:\php\
    3. Make a php.ini configuration file in C:\Windows\ . If you don't know how to make a php.ini , just copy php.ini-dist file in C:\php\ to C:\Windows\php.ini . And then edit the file. Find the line starting with extention_dir. Change the right hand side with actual extension path (C:/php/ext/). Find "Dynamic Extensions" section in the file, uncomment (delete the ";" prefix) the extensions that you want, like php_mysql.dll .
    4. Right click "Computer" and select "Manage" in the popped up menu.
    5. In the left side of the "Computer Management" window, expand "Services and Applications" and click "Internet Information Services (IIS) Manager".
    6. Open "Handler Mappings" in the middle section.
    7. In the right side of the window, click "Add Script Map".
    8. In the window popped up, fill in the blanks with these:

      • Request path: *.php
      • Executable: C:\php\php5isapi.dll
      • Name: PHP

  4. Confirm/close all windows. Put your PHP+MySQL programs into C:\inetpub\wwwroot\ and use your browser to see if everything is working.
Share/Save/Bookmark
Last edited by Wen at 2007-06-13 12:15:25

Posted at 2007-03-27 19:23:23
Tech - Reading a topic
<<  <  1  >  >>
Browse topics by category: Footprints & Travel | Recipes | Fun | Tech | Science | Entertainment | Life | WENSH Affairs | Guests' Msgs |

Valid XHTML 1.0 | Valid CSS2 | WAI-A WCAG 1.0

Copyright 2005-2018 WEN'S Horizon [32/0.209]