Subscribe
Tech - Viewing a topic
<<  <  1  >  >>

IIS7+PHP5+MySQL on Windows Vista

good(0) bad(0) view(1235) comments(0)
poster face
Posts: 1310
Level: ◆◆◆◆◇
Exp.: 10,519
Glamor: 1,280,722
Send a message to Wen Send an email to Wen


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 - Viewing a topic
<<  <  1  >  >>
Add a comment
Comment will be posted by Guest
Your name/nickname:
For security purpose, please correctly answer this math question:

Note: Do not exceed 65535 bytes, HTML is not supported, but you can use NN Code

| | | Register | Forget password
Browse topics by category: Travel | Recipes | Fun | Tech | Science | Entertainment | Life | WENSH Affairs | Guests' Msgs | Abroad Info 05-06 |
| Links | Services | Leave a message | About NetNest |
Valid XHTML 1.0 | Valid CSS2 | WAI-A WCAG 1.0 | W3Csites.com Listed | Valid RSS 1.0 | Valid RSS 2.0
Copyright 2005-2008 WEN'S Horizon [30/0.060]
Powered by NetNest 2.0.2.080706 © 2004-2008 NetNest Group