[Apache] PHP als CGI

From: Oskar Eyb <oskar(at)solls.net>
Date: Wed, 5 Mar 2003 20:20:59 +0100

Hallo,

das Ziel soll es sein, PHP später über suEXEC (welches noch nicht im
Apache drin ist) laufen zu lassen, und dazu ist es erstmal nötig das
PHP als CGI läuft. Bisher hatte ich es immer als Modul im Einsatz, was
auch problemlos funktionierte.

Ich konnte nach Suche im Netz keine genaue Anleitung finden die das
Vorgehen erklärt. So bin ich davon ausgegangen das das 'php'-binary
einfach ins CGI-Verzeichnis gehört. Beim Zugriff übers Web drauf kommt
im Browser die 500er-Errormsg und im log das vielaussagende

"Premature end of script headers: /var/www/default-www/cgi-bin/php.cgi"

an.

-rwxr-xr-x 1 apache www 5384187 5 Mär 19:42 php.cgi

httpd.conf:
AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php

Das Ganze spielt sich in einer chroot-Umgebung ab.
mod_cgi.c ist in httpd enthalten.

-- 
Oskar
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 05 Mar 2003 - 20:21:06 CET

search this site