note 77927 added to faq.installation
| From: | scottatchaissondotnet at osu1 dot php dot net | Date: | Thu, 20 Sep 2007 04:18:38 +0000 |
| Subject: | note 77927 added to faq.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130621@lists.php.net to get a copy of this message | ||
Windows 2000 Server and IIS (SP4 and all patches):
After many frustrating hours of trying to figure out the install (again), It took a while, but here
are a couple tips:
PHP working with IIS uses c:\winnt\php.ini
It doesn't matter what you set the path to, nor what you set the PHPRC environment variable to.
After you get PHP running correctly in the installation folder (using php -i) copy the php.ini file
into the c:\winnt folder.
Here's what worked for me:
- Add PHP path to System environment variable
- Add php5activescript.dll from http://snaps.php.net/ to the PHP
folder, then Register it: "regsvr32 php5activescript.dll"
Set extension_dir and doc_root directives in PHP.INI:
extension_dir = C:\WWW\PHP\ext
doc_root = C:\WWW\Site
cgi.force_redirect = 0
(the last cgi.force_redirect isn't required, but I like to set it anyway)
Copy the .INI file into WINNT folder
In IIS Manager, right-click "Default Web Site", Click "Home Directory",
Click "Configuration", "Add" the ISAPI application:
Executable: <your php install>\php5isapi.dll
Extension: .php
Limit to: GET,HEAD,POST
Check: "Script Engine"
Uncheck: "Check that file exists"
Finally: Set up an ISAPI filter:
Click the "ISAPI Filters" tab,
Filter Name: PHP
Executable: <your php install>\php5isapi.dll
Notes: You don't have to set any of your folders as "Script source" folders. .PHP
files aren't scripts, merely text files that require processing before being shipped off to the
browser, which is what the ISAPI filter does.
Finally, working again.
Chase
----
Server IP: 209.41.74.194
Probable Submitter: 216.221.104.216
----
Manual Page -- http://www.php.net/manual/en/faq.installation.php
Edit -- https://master.php.net/note/edit/77927
Del: integrated -- https://master.php.net/note/delete/77927/integrated
Del: useless -- https://master.php.net/note/delete/77927/useless
Del: bad code -- https://master.php.net/note/delete/77927/bad+code
Del: spam -- https://master.php.net/note/delete/77927/spam
Del: non-english -- https://master.php.net/note/delete/77927/non-english
Del: in docs -- https://master.php.net/note/delete/77927/in+docs
Del: other reasons-- https://master.php.net/note/delete/77927
Reject -- https://master.php.net/note/reject/77927
Search -- https://master.php.net/manage/user-notes.php