| Author |
Message |
msbadmins |
|
Post subject: Testing IIS and PHP failed
Posted: Sep 18, 2012 - 11:18 AM
|
|

Joined: Sep 18, 2012
PA
Posts: 6
Location: PA
Status: Offline
|
|
Everything was going great until I tried to open http://winids/test.php
I get the following page and not sure how to resolve:
"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.
For more information as to why this behaviour exists, see the http://php.net/security.cgi-bin manual page for CGI security
For more information about changing this behaviour or re-enabling this webserver,
consult the installation file that came with this distribution, or visit
http://php.net/install.windows the manual page"
I checked the php.ini and cgi.force_redirect = 0 (I believe this means off right?) I treid it with a 1 and restarted IIS with same results. |
|
|
| |
|
|
|
 |
Morpheus |
|
Post subject: RE: Testing IIS and PHP failed
Posted: Sep 19, 2012 - 03:34 AM
|
|
Site Admin

Joined: Sep 04, 2003
East Coast - USA
Posts: 1460
Location: East Coast - USA
Status: Offline
|
|
It has to be set to 0 for IIS.
Make sure you are removing the ';' from in front of the statement.
; cgi.force_redirect = 1
cgi.force_redirect = 0
You may have also installed the wrong version of PHP. Make sure you are using the 'non thread safe' (nts) version. |
_________________ Best regards,
Morpheus...
WINSNORT.com Management
|
| |
|
|
|
 |
msbadmins |
|
Post subject:
Posted: Sep 21, 2012 - 05:35 AM
|
|

Joined: Sep 18, 2012
PA
Posts: 6
Location: PA
Status: Offline
|
|
|
|
|
 |
Morpheus |
|
Post subject:
Posted: Sep 21, 2012 - 09:38 AM
|
|
Site Admin

Joined: Sep 04, 2003
East Coast - USA
Posts: 1460
Location: East Coast - USA
Status: Offline
|
|
| Rename the php.ini and try the page aqain, just to see if its even seeing the file. Also, make sure there is only one php.ini file installed. |
_________________ Best regards,
Morpheus...
WINSNORT.com Management
|
| |
|
|
|
 |
msbadmins |
|
Post subject:
Posted: Sep 25, 2012 - 07:16 AM
|
|

Joined: Sep 18, 2012
PA
Posts: 6
Location: PA
Status: Offline
|
|
Verified that I only had one php.ini file. Renamed to php_ini.old and reloaded page with same results. So I'm guessing it's not seeing the test.php page at all.
I also noticed I have a C:\inetpub\wwwroot as well as a D:\winids\inetpub\wwwroot |
|
|
| |
|
|
|
 |
Morpheus |
|
Post subject:
Posted: Sep 25, 2012 - 11:21 AM
|
|
Site Admin

Joined: Sep 04, 2003
East Coast - USA
Posts: 1460
Location: East Coast - USA
Status: Offline
|
|
| The modder will delete the C:\inetpub folder. |
_________________ Best regards,
Morpheus...
WINSNORT.com Management
|
| |
|
|
|
 |
msbadmins |
|
Post subject:
Posted: Sep 26, 2012 - 03:03 AM
|
|

Joined: Sep 18, 2012
PA
Posts: 6
Location: PA
Status: Offline
|
|
According to the instructions modder is the first thing you run after you unzip the development pack. How is it going to delete the c:\inetpub folder that will not be installed until 6 or 7 steps later?
I changed IIS to point the Defult Website to \winids\inetpub\wwwroot
Still getting: 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. |
|
|
| |
|
|
|
 |
Morpheus |
|
Post subject:
Posted: Sep 26, 2012 - 03:53 AM
|
|
Site Admin

Joined: Sep 04, 2003
East Coast - USA
Posts: 1460
Location: East Coast - USA
Status: Offline
|
|
Sorry, was off onto something else. The answer file installs IIS into the 'd:\winids' folder, and no IIS file structure is ever created in 'C:' folder when the guided install is followed.
Possibly a previous install of IIS? |
_________________ Best regards,
Morpheus...
WINSNORT.com Management
|
| |
|
|
|
 |
msbadmins |
|
Post subject:
Posted: Sep 27, 2012 - 04:16 AM
|
|

Joined: Sep 18, 2012
PA
Posts: 6
Location: PA
Status: Offline
|
|
No this is a fresh install on a blank HD. Although I do not have a D drive I'm installing to C: and editing files as I go. I missed editing iisanswer.
I uninstalled IIS and edited iisanwer.txt. reinstalled IIS and now I only have a C:\winids\inetpub\wwwroot
I then reconfigured IIS for PHP and then restarted the service.
test.php is still giving me the Redirect_status error.
With or without the php.ini file.
At this point I've tried everything I know how ... guess I'll have to reformat and start over only this time make a D partition.
One last thing I noticed. In php.ini the paths in the instructions show: d:\winids\php;d:\winids\php\pear *note: I changed drive letters to match my install.
I don't have a pear folder located in php. I have one located in c:\winids\Adobd5\pear |
|
|
| |
|
|
|
 |
msbadmins |
|
Post subject:
Posted: Sep 27, 2012 - 05:14 AM
|
|

Joined: Sep 18, 2012
PA
Posts: 6
Location: PA
Status: Offline
|
|
Update: Just for giggles before I went to all the work of whipping and re-installing I decided to download the latest php build from windows.php.net - php-5.4.7-nts-Win32-VC9-x86.zip
I renamed my old php folder to php_old and unzipped this file. Edited php.production and saved it as php.ini
loaded http:\<pcname>\test.php
Success!! Page loaded as expected. Moving on.... |
|
|
| |
|
|
|
 |
Morpheus |
|
Post subject:
Posted: Sep 27, 2012 - 06:36 AM
|
|
Site Admin

Joined: Sep 04, 2003
East Coast - USA
Posts: 1460
Location: East Coast - USA
Status: Offline
|
|
Both versions of PHP are included in the Software Pack and can be easily confused, that's why the file names are in bold red.
All the scripts have hard coded paths, so editing of the scripts, and the paths in the guides are crucial to a successful install. |
_________________ Best regards,
Morpheus...
WINSNORT.com Management
|
| |
|
|
|
 |
|
|