PHP and IIS help on Win 2K

Thread Tools
 
Search this Thread
 
Old Jan 31, 2006 | 10:15 PM
  #1  
Tical84's Avatar
Thread Starter
|
Senior Member
Joined: May 2005
Posts: 1,007
Likes: 0
From: Kamloops. B.C.
Question PHP and IIS help on Win 2K

I'm trying to get my website working on my server computer but it's not happening. I know IIS is working but it's the PHP part that's not. This is the first time I've tried to set this up so I'm in the dark. I've followed different directions on different websites but still can't get it working properly. Anyone have any experience setting up PHP on a 2K computer want to help out? :o

<p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This
means that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.</p>
<p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
<p>For more information about changing this behaviour or re-enabling this webserver,
consult the installation file that came with this distribution, or visit
<a href="http://php.net/install.windows">the manual page</a>.</p>
This is the message I'm getting when I try to access my page. I've made sure that force_redirect = 0.


(I posted here because A) This is the only forum I'm registered with and 2) I've seen how technical alot of you guys are.)
Thanks
 
Reply
Old Feb 1, 2006 | 09:06 AM
  #2  
vader716's Avatar
Senior Member
Joined: Jan 2003
Posts: 2,079
Likes: 0
From: Pikesville, MD
This compile-time option prevents anyone from calling PHP directly with a URL like http://my.host/cgi-bin/php/secretdir/script.php. Instead, PHP will only parse in this mode if it has gone through a web server redirect rule.

Usually the redirection in the Apache configuration is done with the following directives:

Action php-script /cgi-bin/php
AddHandler php-script .php

This option has only been tested with the Apache web server, and relies on Apache to set the non-standard CGI environment variable REDIRECT_STATUS on redirected requests. If your web server does not support any way of telling if the request is direct or redirected, you cannot use this option and you must use one of the other ways of running the CGI version documented here
 
Reply
Old Feb 1, 2006 | 10:34 AM
  #3  
Tical84's Avatar
Thread Starter
|
Senior Member
Joined: May 2005
Posts: 1,007
Likes: 0
From: Kamloops. B.C.
I had seen that webpage too. I was hoping I wasn't going to have to use Apache since I never used it before but obviously I don't know what I'm doing so it wouldn't hurt to try.
 
Reply
Old Feb 1, 2006 | 10:43 AM
  #4  
vader716's Avatar
Senior Member
Joined: Jan 2003
Posts: 2,079
Likes: 0
From: Pikesville, MD
Is there a particular script that you need php for?

Have you considered other options?
 
Reply
Old Feb 1, 2006 | 11:23 AM
  #5  
Tical84's Avatar
Thread Starter
|
Senior Member
Joined: May 2005
Posts: 1,007
Likes: 0
From: Kamloops. B.C.
Honestly, I didn't write the script. I'm building a website with my friend and he wrote it, I barely know html. The problem is he can write the webpages but can't remember how to set it up.
 
Reply
Old Feb 2, 2006 | 11:15 AM
  #6  
Tical84's Avatar
Thread Starter
|
Senior Member
Joined: May 2005
Posts: 1,007
Likes: 0
From: Kamloops. B.C.
Just an update for you Vader since you're the only one that bothered to respond.
I formatted my computer and started from scratch. It was as easy as all the instructions said it would be when I started clean.
 
Reply




All times are GMT -4. The time now is 08:22 AM.