Marc Nilius: /(PHP) Webserver mit PHP-Binaries

Beitrag lesen

Hallo!

Ich habe zu Hause meinen kleinen und feinen Webserver via Omnicron's OmniHTTPd realisiert. Gestern habe ich  von Version 2.9 auf 2.10 geupdated. Bei der neuen Version ist PHP V4.2.2 dabei.

Seitdem funktioniert ein PopUp-Aufruf nicht mehr. Dieser Aufruf enthielt den Aufruf einer PHP-Datei nach folgendem Stil:

script.php?var1=inhalt1&var2=inhalt2

wenn ich dies nun starte, erhalte ich folgende Fehlermeldung:

"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."

OK, mittlerweile habe ich verstanden, dass das daran liegt, dass PHP bei OmniHTTPd nicht als Modul sondern als Binary integriert ist.

Frage: Kann ich das irgendwie in der Konfiguration (von PHP / OmniHTTPd) umgehen? Wenn nein, kann ich es programmiertechnisch umgehen?

Danek fuer eure Hinweise.

Gruss,
Marc Nilius