Dotnetplace.com

.NET Articles, Web Devploment, ASP.NET, HTML, Sharepoint 2010, Aamir Hasan
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here

Advertise

Loading...


Posted by Aamir Hasan   on Wednesday, September 28, 2011 Total Views:  

In this article, we will see how to configuring FastCGI to Host PHP Applications in IIS 7 in Window Server 2008 R2. To configuring FastCGI in IIS, make sure that CGI is enable in IIS 7. Let's start

Step 1

Go to Control panel -> Administrative Tools -> Server Manager -> Add Role Services. Select Role Services Window, checked CGI check box, click Next button to continue as shown in below figure.



This will enables both CGI and FastCGI services.

Step 2

Download php Zip file from here. Unzip PHP zip file  to location c:\php, or choice your location your self. Find php.ini file in PHP folder from where you have unzip php folder, copy php.ini file to c:Window\php.ini.

Step 3

Go to Control Panel -> Administrative Tools, open Internet Information Services (IIS) Manager or write “inetmgr.exe” in your Run command.



In Internet Information Services (IIS) Manager select [SERVER NAME] under the Start Page. Double click on Handler Mappings as show in below figure.


In the Actions pane, click Add Module Mapping hyperlink. Add Module Mapping dialog box will opened.



Enter the following configuration settings as

  1. Request path: *.php
  2. Module: FastCgiModule
  3. Executable: C:\php\php-cgi.exe
  4. Name: PHP viaFastCGI

Click Yes button to create a FastCGI applicaton for executable.

Now your PHP is configured successfully.

Step 4

To test PHP work correctly, create a index.php file in the C:\Inetpub\wwwroot folder

Open index.php file and paste following line of code as given below.

<?phpphpinfo();?>

Step 5

Enter http://localhost/index.php URL in your web browser. If settings will be shown in the index.php page then its mean php is working perfectly.

Protected by Copyscape Online Plagiarism Tool

Comments (1) -

buy wow accounts
buy wow accounts United States
10/2/2015 7:50:13 AM #

*There are some interesting points in time in this article but I don’t know if I see all of them center to heart. There is some validity but I will take hold opinion until I look into it further. Good article , thanks and we want more! Added to FeedBurner as well

Percy Heinz
Percy Heinz United States
3/2/2016 9:41:26 AM #

very nice post, i certainly love this website, keep on it <a href="https://www.2webdesign.com">; web design</a>

Genevieve Newhart
Genevieve Newhart United States
3/4/2016 7:33:00 PM #

This is the right blog for anyone who wants to find out about this topic. You realize so much its almost hard to argue with you (not that I actually would want…HaHa). You definitely put a new spin on a topic thats been written about for years. Great stuff, just great!

Mickie Corbell
Mickie Corbell United States
8/23/2016 7:45:55 PM #

You should take part in a contest for one of the best blogs on the web. I will recommend this site!

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5