php not working

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
servers
-


Joined: 13 Jul 2004
Posts: 1

PostPosted: Tue Jul 13, 2004 4:47 pm    Post subject: php not working Reply with quote

i am geting this


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 do not on how to fix it
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Tue Jul 13, 2004 5:18 pm    Post subject: Reply with quote

http://www.aprelium.com/abyssws/php.html

http://os17fan.cjb.net/web/php_tutorial.html

Quote:

For more information as to why this behaviour exists, see the manual page for CGI security.


http://php.us.themoes.org/manual/en/faq.installation.php

Quote:

12. When running PHP as CGI with IIS, PWS, OmniHTTPD or Xitami, I get the following error: Security Alert! PHP CGI cannot be accessed directly..

You must set the cgi.force_redirect directive to 0. It defaults to 1 so be sure the directive isn't commented out (with a ;). Like all directives, this is set in php.ini

Because the default is 1, it's critical that you're 100% sure that the correct php.ini file is being read. Read this faq for details.


Amazing what you can find when you bother reading the manual.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jul 15, 2004 1:44 am    Post subject: Re: php not working Reply with quote

Another link: http://www.aprelium.com/abyssws/faq.html#A2-2 .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
00squeaky
-


Joined: 11 May 2004
Posts: 60

PostPosted: Thu Jul 15, 2004 6:36 pm    Post subject: Reply with quote

i CGI parameters, make a variable called REDIRECT_STATUS in the botto box, and set it to 200.
_________________
Languages mastered:
HTML,GML,C,PHP,MYSQL (not really a language, but wtf)
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group