View previous topic :: View next topic |
Author |
Message |
servers -
Joined: 13 Jul 2004 Posts: 1
|
Posted: Tue Jul 13, 2004 4:47 pm Post subject: php not working |
|
|
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 |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Tue Jul 13, 2004 5:18 pm Post subject: |
|
|
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 |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
00squeaky -
Joined: 11 May 2004 Posts: 60
|
Posted: Thu Jul 15, 2004 6:36 pm Post subject: |
|
|
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 |
|
 |
|