SQL PHP HTML ASP JavaScript articles and free scripts to download
 

IIS7 configuring to run PHP scripts

You need to install IIS7 while installing operating system or use the system disk to install IIS7. To check if IIS is running or not you can open your browser and type.

http://localhost/

or

http://127.0.0.1/

To know more about hosting websites in your local computer read IIS localhost. If IIS is running then you need to configure it to run PHP scripts. Before this configuration you can install PHP in your system

To open IIS admin panel, go to settings > Control Panel > Administrative tools > Internet Information Services

Mapping Handler

Mapping Handler

Go to Mapping Handler button, you will see all the mappings done so far. In the right side Action area click Add Script Map. Adding Mapping Handler

Adding PHP dll to IIS

In the request path write *.php
In the executable browse to your PHP folder upto the file name php5isapi.dll . This is your dll file which IIS will point to execute PHP scripts.
Based on the PHP installed directory your path may vary, here is one example
C:\Program Files\PHP\php5isapi.dll
Now enter PHP as name and click OK.
Adding script map

Adding to Modules List

While adding PHP script to our Script Map in IIS we may face an error message asking Asapi Module must be in our Modules list first. To add this or any other module to our list we must have to go to our Windows features on or off panel.

Go like this.
Control Panel > Programs and features > Turn Windows feature on or off A small window will open with all the available features . Windows features On or Off Internet Information Services
World Wide Web Services
Application Development Features

You will be presented with features which you can turn on or off. Check ASAPI Extensions and click OK. With this you have added Asapi module to module list. After this you can again add PHP script by returning to our IIS7 admin panel explained above.

Now to check your PHP installation you can use phpinfo function.


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
Disabling a part of the code by using comments in PHP
Printing Numbers 1 to 50 to screen
PHP Info: Details on PHP script settings & installation at server end
PHP.ini file: PHP server configuration setting file for Edit or update
ini_get: PHP function to get configuration settings from php.ini file
ini_set: PHP function to change the configuration settings of php.ini file
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 Extension directory of PHP to store dll files for windows

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


Join Our Email List
Email:  
For Email Newsletters you can trust
Basics
PHP Sections