SQL PHP HTML ASP JavaScript articles and free scripts to download
 

Installing PHP in IIS on Window platforms


Many of us use PHP in windows platform and transfer the data / files to remote server. The advantage of PHP is, it works equally well in Win platform also. There are different ways to install PHP in a windows platform. Here is one of the way but this may not be the easiest way but this will give you an idea how the web server get configured for running any scripts like PHP. The same technique can be used to run any other script. This for configuring IIS to execute a script based on different file extensions it receives.

Read on how to set up a website in local computer using IIS

PHP 5 installation process is shown in part II of this tutorial. You can see screen shots of changes required in PHP 5 installation.

Start>control panel>administrative tools>Internet Information Service

Expand the + buttons on the left side area if any and Right click the label saying default web site. You will get a list of items in the menu and then go to properties section.
Default web site propertise In the property section select go to Home Directory tab ( at the top ) and click the button Configuration. Here we are trying to tell IIS to execute php.exe script for all file extensions of PHP.
Application Configuration Once we click the configuration button we will get one window with existing file extension and corresponding executable applications. Here we have to add our required application to the list so we have to click the Add button to add our php extension.
Add / Edit Application extension mapping After clicking Add button we will get an window to inter the path and extension. We can enter the path details by using the browse button. In the extension field we will enter .php ( dot php ). Click OK and you will see the executable path added to the list for the .php extension. Now select the script and executables on the execute permissions. Click OK and to close the main property window click OK again. That's all ..

This will configure IIS to run PHP with php file extensions.

Discuss this at PHP forum Application Configuration


Further readings
Introduction to PHP: How scripting languages work
PHP beginners guide
echo command & escape character for string outputs
Adding delay to the script execution time by using sleep function
Printing Numbers 1 to 50 to screen
PHP Info: Details on PHP script settings & installation at server end
PHP Version : What is the version of PHP running at the server
Installing PHP on windows server and IIS
Installing PHP5 on windows server and IIS
Setting up PHP in Windows Vista OS to run in IIS7 web server
Configuration of IIS7 to run PHP scripts with ISAPI module

shreyas rane26-02-2010
thanks
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked

Sections
PHP
JavaScript
ASP
HTML
SQL
Photoshop
Articles SEO
PHP Tutorials
Basics
PHP Monthly Planner
PHP Introduction
Loops & structure
Array
Date & Time
Functions
Form Handling
File Handling
Math Functions
String Functions
GD Functions
Comment Posting
Content Management
PHP & Ajax
Popular Tutorials
Drop down list
File Upload
Signup script
Member Login
Line Graph
PHP MySQL Paging
PHP Calendar
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.