Christian Seiler: (PHP) HTTP Authentifikation

Beitrag lesen

Hallo Sindbad,

Wie prüf ich das?

<?php phpinfo(); ?>

Suche dort in der ersten Tabelle nach SAPI - wenn dort Apache steht, dann ist es ein Modul, wenn dort CGI steht, dann ist es als CGI.

Und wie kann ich's ändern ?

Ich gehe mal von Windows und Apache 1.3 aus:

CGI-PHP bindest Du so ein:

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"

PHP als Modul bindest Du so ein:

LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .phtml

(Bei Apache 2 würde es php4apache2.dll statt php4apache.dll heßen)

Beachte, dass die Einträge zum Einbinden als Modul _hinter_ die ClearModuleList und AddModule-Zeile gehören. (ob direkt dahinter oder weiter unten ist egal)

Christian

--
Hast Du einen Beitrag? Nur her damit!
http://aktuell.de.selfhtml.org/tippstricks/beitrag.htm
SELF-Code: (http://emmanuel.dammerer.at/selfcode.html)
sh:) fo:) ch:] rl:( br:> n4:& ie:% mo:) va:) de:] zu:) fl:( js:| ss:) ls:[