Jump to content


recompiling PHP


1 reply to this topic

#1 Lang

    Young Padawan

  • Members
  • Pip
  • 198 posts
  • Gender:Male
  • Location:Ontario, Canada

Posted 24 January 2007 - 01:14 PM

I'm getting this error:

<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>

I did set the cgi.force_redirect = 0 in the PHP.ini file. However, I do not know how to recompile PHP in windows. I've stopped the service, tried re-running. It just doesn't work.

Any help is appreciated,
Thanks.

#2 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 24 January 2007 - 03:29 PM

First check and make sure you read their info correctly, just to make sure you understand it all.
And secondly, make sure you are changing the right php.ini file! I ran into this once before, I would make changes to the file and it wouldn't apply to my server on localhost. Turns out I was changing the php.ini that was located in my PHP folder with the core settings, whereas I somehow tracked down that the server was actually reading the php.ini file that was in the Windows directory. :whistle:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users