urasplogo Search
How can I install PHP5 under IIS 6.0
 
 

Download the latest PHP version for Windows from http://www.php.net/downloads.php, right-click on the PHP folder, and select "Extract All..."

http://www.ntcompatible.com/images/faq/faq_win2003php1.jpg

Select "Next"

http://www.ntcompatible.com/images/faq/faq_win2003php2.jpg

Choose C:\Program Files\PHP5 as extract directory and click on "Next"

http://www.ntcompatible.com/images/faq/faq_win2003php3.jpg

Uncheck "Show extracted files" and click on "Finish"

http://www.ntcompatible.com/images/faq/faq_win2003php4.jpg

Launch the "Internet Information Services (IIS) Manager" from the start menu. You need to install IIS in case this option is not available.

http://www.ntcompatible.com/images/faq/faq_win2003php5.jpg

Right-click on "Website" and select "Properties"

http://www.ntcompatible.com/images/faq/faq_win2003php6.jpg

Select the "Home Directory" tab and choose "Configuration"

http://www.ntcompatible.com/images/faq/faq_win2003php7.jpg

Choose "Add"

http://www.ntcompatible.com/images/faq/faq_win2003php8.jpg

Add "C:\Program Files\PHP5\php5isapi.dll" (including quotes) to "Executable" and add .php as extension. Then limit the verbs to GET,HEAD,POST,TRACE and click on OK

http://www.ntcompatible.com/images/faq/faq_win2003php9.jpg

Now choose the "Documents" tab and select "Add"

http://www.ntcompatible.com/images/faq/faq_win2003php10.jpg

Enter index.php and click on OK

http://www.ntcompatible.com/images/faq/faq_win2003php11.jpg

Now, you can change the priority of your index.php with the "Move Up" button. This is only necessary if you run primary a PHP based website

http://www.ntcompatible.com/images/faq/faq_win2003php12.jpg

Finally, select Web Service Extensions on the left side and choose "Add a new Web service extension"

http://www.ntcompatible.com/images/faq/faq_win2003php13.jpg

Select "Add" and enter as path C:\Program Files\PHP5\php5isapi.dll and click on OK

http://www.ntcompatible.com/images/faq/faq_win2003php14.jpg

Then enter php5 as extension name and check "Set extension status to Allowed". Then click on OK to enable this extension

http://www.ntcompatible.com/images/faq/faq_win2003php15.jpg

Copy C:\Program Files\PHP5\php.ini-dist to C:\WINDOWS\php.ini and restart IIS

Then create the following php file with Notepad:


<?phpinfo(); ?>


Save this file under C:\Inetpub\wwwroot\test.php

Now launch Internet Explorer and go to http://localhost/test.php . You should see the PHP info page if your PHP5 installation was successfully.

http://www.ntcompatible.com/images/faq/faq_win2003php16.jpg

 
 
 
Our Sponsors
Food