Steps on duel install Apache, IIS with PHP

(After installing PHP and Apache and making sure everything works perfectly – assume you already know how to do that)

  1. install IIS
    • Start->Control Panel->Add/Remove Programs->Add/Remove Windows Components
  2. since I wanted Apache and IIS on the same machine, they need to be on seperate ports. I decided IIS would be on port 8080 and changed it like this.
    • Get to the IIS manager
      – Start->All Programs->Administrative Tools->Internet Information Services
    • configure port
      – local computer->Websites->Default Website(right click)->Properties-> on the Website tab change the port
  3. follow the php manual’s instructions found here with a few alterations.
    • I installed mine as an ISAPI rather the CGI. For whatever reason with the ISAPI filter and the Application Mapping done I could not get the phpinfo page to rendor correctly in FF (worked in IE but not FF – kept trying to download it). So I removed the ISAPI filter and it worked – go figure. So now I can’t do HTTP Authentification but it works.
    • To get PHP to see the correct php.ini (which I keep in the C:php folder rather then in WINDOWS) need to add a new System variable. You can read how here.
    • make the PHP directory readable to IIS
      • go to the PHP folder (in my case C:\php) right click->Properties->Web Sharing Tab->Share this Folder
        – Then click Edit Properties. Access Permissions – check Read, Application Permissions – click execute

No one step is particularly hard but finding out what to do and how took time. Only took me 2-3 days to figure out this. Hopefully someone else won’t have to wait so long.

Note – I was reminded that I used the wrong dual… would fix it but just my luck the links to it from outside would point to the wrong place.

Comments (14)

PHPDeveloper.orgOctober 11th, 2006 at 12:16 pm

Ligaya Turmelle’s Blog: Steps on dual install Apache, IIS with PHP…

Raj ShekharOctober 11th, 2006 at 6:54 pm

The package published by is the easiest way to get your php/apache/mysql working in windows

AndrewOctober 20th, 2006 at 7:31 pm

A way to automate PHP’s installation for every single version of PHP, and you don’t even have to go to the PHP site to check for a new version.