
Go down to the extensions section, which should be at the bottom I commented out EVERY extension by adding a (semi-colon) in front of the extensions name. You can open it with NotepadĬhange "open_basedir" value to the following: Open PHP.ini, which is located in C:\PHP or wherever you installed PHP. This is probably due to the programmer drinking too much coffee Set up will copy all the files and do what it needs to doĭo not worry about this error, IIS does not have nf file Apache does. PHP is ready to install, press "Install" to begin installation It’s OK to install ALL of the extensions, we will only enable the ones we need in PHP.ini when we are done. Right click PHP and choose "Entire feature will be installed on local hard drive".

You can install it under whichever directory you choose, what I have learned is C:\PHP works the best. Press "Next" to continueĪccept the terms of the license agreement by checking the checkbox, press "Next" to continue Under "Roles" you should now see CGI installed. A third way to open it is "Server Manager" option under Administrative Tools.Īfter the installation succeeds, press "Close" Probably the quickest way to open Server Manager is to right click "My Computer" and choose "Manage", another way is open "Control Panel" go to "Program and Features" and select "Turn Windows features on or off". Open Server Manager, you can open this several different ways in Windows Server 2008.

Installing CGI also installs FastCGI which we need for PHP to work correctly. You will first need to install CGI on IIS 7 before you install PHP. Platform: Hyper V Host ( ) OS: Windows Server 2008 Installation Media: PHP 5.2.9 was downloaded from CPU: 2 dedicated 2.0Ghz RAM: 1024mb Disk: 40GB Notes: a base installation of IIS 7 has already been installed, that installation is covered here. On my new 2008 server I am going to attempt to run the requests through Fast-CGI.exe, which should be faster than a filter. You can configure PHP to use an ISAPI filter or CGI, on my old 2003 server I had it running as an ISAPI filter and it worked just fine.

In this article I will install and configure both FastCGI and PHP 5.2.9 on IIS7.
