IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old November 16th, 2004, 11:29 PM
Hobgoblin Hobgoblin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 66 Hobgoblin User rank is Lance Corporal (50 - 100 Reputation Level)Hobgoblin User rank is Lance Corporal (50 - 100 Reputation Level)Hobgoblin User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 6 h 1 m 35 sec
Reputation Power: 6
IIS 5.1, PHP 4.3.9, Getting Error 400

Hi,

Despite reading all the other messages people have posted with similar problems, and having tried damn near every suggestion out there, I still cannot get PHP scripts to execute.

I installed an configured IIS 5.1, PHP 4.3.9 on WinXP Pro SP2. Despite doing all of these steps, I'm still getting HTTP error 400:

- I have installed PHP to C:\PHP\
- PHP.INI file is in C:\PHP\, not C:\Windows.
- php4ts.dll is in the PHP directory as well as System32.
- Application Mappings for .php set to C:\PHP\pxp.exe
- IUSR_ Account given read/execute permissions to C:\PHP as well as C:\Inetpub\wwwroot

I'm trying to use CGI mode. I can't get ISAPI filters to load properly. (Nothing works)

I've googled this problem to death, followed instructions to a "T" on the PHP site, as well as some third party instructions, and I'm still at a loss.

Help?

Reply With Quote
  #2  
Old November 16th, 2004, 11:53 PM
Hobgoblin Hobgoblin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 66 Hobgoblin User rank is Lance Corporal (50 - 100 Reputation Level)Hobgoblin User rank is Lance Corporal (50 - 100 Reputation Level)Hobgoblin User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 6 h 1 m 35 sec
Reputation Power: 6
I found the prblem, the INI file got overwritten and cig force redirect was commented out and set to '1', so I set it to '0' and it seems to work now.

But i have a new question -- I use _SERVER['DOCUMENT_ROOT'] in a lot of my programs I build for the web (mostly Apache Servers), and there is no _SERVER['DOCUMENT_ROOT'] variable. I tried setting it up in PHP.INI, but it didn't show up.

I setup a few virutal directories in IIS to point to directories on other drives, where I store the website files (I prefer not to use C. Is there a way for me to use _SERVER['DOCUMENT_ROOT'], and have aliases show up properly? Ex:

F:\Websites\Foo would be set up as http://localhost/foo/

I would like to get _SERVER['DOCUMENT_ROOT'] on that site to point to f:\Websites\Foo, to minimize the amount of re-programming I would have to do when uploading the PHP files to an Apache envirenment where the _SERVER['DOCUMENT_ROOT'] is /home/sites/foo.com/htdocs/ or whatever.

ANy suggestions?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > IIS 5.1, PHP 4.3.9, Getting Error 400


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway