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):
Install MySQL as in Windows XP. MySQL 4.1 or above works on Windows Vista.
Install IIS7
Go to Control Panel->Programs, click "Turn Windows features on or off" in the "Programs and Features" section.
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".
Confirm/close all windows. To check if IIS7 is working, open your browser and try to access http://localhost
Install PHP5
Download PHP5 Windows binary zip package, which can be found at http://www.php.net/downloads.php
Extract files in the zip package to a folder. Suppose it's C:\php\
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 .
Right click "Computer" and select "Manage" in the popped up menu.
In the left side of the "Computer Management" window, expand "Services and Applications" and click "Internet Information Services (IIS) Manager".
Open "Handler Mappings" in the middle section.
In the right side of the window, click "Add Script Map".
In the window popped up, fill in the blanks with these:
Request path: *.php
Executable: C:\php\php5isapi.dll
Name: PHP
Confirm/close all windows. Put your PHP+MySQL programs into C:\inetpub\wwwroot\ and use your browser to see if everything is working.




User login

