Tuesday, 4 February 2014

How to run php files in IIS Server

Introduction:
In this article I will explain how to run php files in IIS Server.
 
Description:
Before run php files in to IIS Server we need to configure/install the PHP Manager in windows Platform.
 
Step 1:
            Install the Php Manager by using Microsoft Web Platform  Installer . Click on Install Now, then automatically open a window then hit the Install. it will be installed.
 
 
Step 2:
          Configure the PHP Manager in IIS. Open the IIS Server in your local system and Configure the Settings.
 
PHP Manager for IIS is a tool for managing one or many PHP installations on IIS 7 and IIS 7.5 servers.
Use it to:
  1. Register PHP with IIS;
  2. Validate and properly configure existing PHP installations;
  3. Run multiple PHP versions side by side on the same server and even within the same web site;
  4. Check PHP runtime configuration and environment (output of phpinfo() function)
  5. Configure various PHP settings
  6. Enable or disable PHP extensions
  7. Remotely manage PHP configuration in php.ini file
PHP Manager main page:

 
PHP Manager - configuration recommendations:
 
 
Step 3:
            Open your C:\inetpub\wwwroot and create phpinfo.php file and write the below code and save it.
 
<?php phpinfo(); ?>
 
 
Step 4:
           Open your browser and enter the http://localhost/phpinfo.php then it will be show the php information like below.
 
If you have any queries leave a comment..
 

No comments:

Post a Comment