Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > Windows Server > Support Documents

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-08-2006, 04:31 AM
mindfrost82's Avatar
Administrator
 
Join Date: Mar 2006
Location: Illinois
Posts: 2,199
Sex: Male
My Mood:
Thanks: 5
Thanked 5 Times in 5 Posts
Send a message via ICQ to mindfrost82 Send a message via AIM to mindfrost82 Send a message via MSN to mindfrost82 Send a message via Yahoo to mindfrost82
Windows 2003: PHP support in IIS6

This is how I got PHP support in IIS 6.0:

- Download the latest PHP distribution (ZIP, not the cheesy installer) from php.net, and unzip it to a directory of your choosing--we'll use c:\php for the sake of consistency

- Copy php.ini-recommended to c:\windows

- Move php4ts.dll to c:\windows\system32

- Open the IIS management console

- Right-click on Web Service Extensions, and select "Add a new Web service extension"

- Enter .php for the Extension Name

- Enter c:\php\sapi\php4isapi.dll for the Path

- Check the "Set extension status to Allowed" box, and click OK

- Under Web Sites, go to the site that you wish to configure, right-click on it, and go to Properties

- Go to the Home Directory tab

- Click the Configuration button

- Enter c:\php\sapi\php4isapi.dll in the Executable field

- Check that All Verbs is selected

- Select both check boxes at the bottom, and Click OK

- Restart IIS
Reply With Quote
  #2 (permalink)  
Old 03-08-2006, 04:31 AM
mindfrost82's Avatar
Administrator
 
Join Date: Mar 2006
Location: Illinois
Posts: 2,199
Sex: Male
My Mood:
Thanks: 5
Thanked 5 Times in 5 Posts
Send a message via ICQ to mindfrost82 Send a message via AIM to mindfrost82 Send a message via MSN to mindfrost82 Send a message via Yahoo to mindfrost82
Another Option is with Fast CGI:

I found Shane's instructions a bit confusing if you are not a guru, so i have written this guide to help others get FastCGI working on IIS:


Make sure you have PHP 4.3.x or later installed. Earlier versions of PHP require extra work to get FastCGI working.

This example assumes your cgi application is located in c:\php\php.exe.

Download http://www.caraveo.com/fastcgi/fastcgi-0.6.zip and unpack isapi_fcgi.dll to c:\php\isapi_fcgi.dll.

Create the following registry key with regedit.exe:
HKEY_LOCAL_MACHINE:Software\FASTCGI\.php

Then add to this key the following values:
AppPath = c:\php\php.exe
BindPath = php-fcgi

Alternatively, you can download and run the sample registry file fastcgi.reg. You might want to change the AppPath of the sample.

Add the application mappings extensions you want to be sent to the fastcgi dll using the IIS configuration screens. To do so:
From the Internet Service Manager (MMC), select the Web site or the starting point directory of an application.
Open the directory's property sheets (by right clicking and selecting properties), and then click the Home Directory, Virtual Directory, or Directory tab.
Click the Configuration button, and then click the App Mappings tab.
Click Add, set the file extension to .php, and in the Executable box, type: c:\php\isapi_fcgi.dll, and check the Check that file exists checkbox and save the mapping.
Do the same for similar extensions such as .php3 or .phtml.
Then save all changes and restart the web-server.

To test, request for multiple web pages at the same time, and observe the processes in the Task Manager. After the web requests complete, the php.exe processes will continue running.


Then add the info in the Web Services Extension and set to Allow
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > Windows Server > Support Documents


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:51 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Web Advertising | Credit Cards | Credit Card Offers | Compare | Mortgage



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109