visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: PHP :: Problem of install PHP4 with window ME


By: MengKiat U.S.A.  Date: 05/06/2003 00:00:00  English  Points: 125 Status: Answered
Quality : Excellent
I am using window ME & PWS.

I have installed PWS & Perl with successfully before i start install PHP4.
After i installed PHP4 and try to execute the php file on my browser, the browser display the following message.

*************************************************************************
Security Alert! The PHP CGI cannot be accessed directly.
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 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 the manual page.

**************************************************************************

I don't know why this is happen and don't know how to solve it. Please help me...

By: VGR Date: 05/06/2003 20:48:00 English  Type : Answer
yes, alrady asked for recently. Someone posted something about an option in php.ini

uncomment this line in php.ini :

; cgi.force_redirect = 1

By: harwantgrewal Date: 05/06/2003 21:19:00 English  Type : Comment
these are some values from php.ini file

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~usernamem used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = c:\php\extensions\

; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution. Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect_status_env = ;

Harry
By: carchitect Date: 05/06/2003 23:20:00 English  Type : Comment
cgi.force_redirect = 0

make it 0 as i know
By: bljak Date: 05/06/2003 23:24:00 English  Type : Comment
well, just offtopic comment
get a real OS

//bljak

Do register to be able to answer

EContact
browser fav
page generated in 307.889940 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page