02. september 2004 - 17:46Der er
12 kommentarer og 1 løsning
PHP på Windows 2003 server
Hej Jeg er ved at prøve at oprette et PHPbb forum på min server. Filerne er blevet uploaded, men når jeg prøver at komme ind og konfigurere forummet får jeg denne fejlmeddelelse:
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.
Hvad har jeg gjort forkert da jeg installerede PHP 5.0.1 på serveren?
; 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
Kig i din php.ini sikkert i c:\windows og finde ovenstående.
; 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 = 0 cgi.force_redirect = 0
; 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 = 0 cgi.force_redirect = 0
Jeg tror jeg har fundet ud af det......jeg kopierede filen php.ini til c:\windows og så kom installationssiden frem :-) Hvios du lige giver mig et svar så får du pointene for din tid og hjælp.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.