Philipp Hasenfratz: PHP-Konfiguration: "The PHP CGI cannot be accessed directly."

Beitrag lesen

Halihallo

Tja - ich habs umgestellt, geht aber trotzdem nicht.
Ich muss den Computer oder sonst was eh nicht neustarten oder??

Ne, sollte so funktionieren.

Aus der php.ini (im Win-Ordner versteht sich! - Hast du aber, nicht?)

; 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 = Off

Tja, also ich verwende den IIS, also habe ich hier keine vergleichbare Umgebung, sorry. Aber weiter:

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

setz hier mal was ein und versuch mal die Umgebungsvariable in Win/DOS einzustellen, vielleicht lässt sich php so "täuschen".

cgi.redirect_status_env = CGI_OK

dann die Umgebungsvariablen in Win/DOS setzen.

Viele Grüsse und viel Glück

Philipp