API-PHP auf nem Apache 2
Reto Strub
- php
Hallo Forum
Ich habe nun den Apache 2 mit PHP als CGI laufen. nun möchte ich PHP jedoch als API direkt an Apache laufen lassen. Kann mir jemand helfen, welche einträge ich in der httpd.conf verändern muss.
wenn es euch hilft, so könnt Ihr meine httpd.conf mal anschauen: http://213.189.154.158/httpd.txt
Danke im Voraus
Grüsse aus der Schweiz
Reto
Hallo Reto,
ich vermute mal, dass du nur entsprechend die Hashes verändern musst
alt:
#--PHP in CGI-Modus --------------------------------------#
ScriptAlias /php/ "D:/wampp2c/php/"
AddType application/x-httpd-php .php .php4 .php3 .phtml
Action application/x-httpd-php "/php/php.exe"
#--PHP in CGI-Modus --------------------------------------#
#--PHP in API-Modus --------------------------------------#
#LoadFile "D:/wampp2c/php/sapi/php4ts.dll"
#LoadModule php4_module "D:/wampp2c/php/sapi/php4apache2.dll"
#AddType application/x-httpd-php .php .php4 .php3 .phtml
#--PHP in API-Modus --------------------------------------#
neu:
#--PHP in CGI-Modus --------------------------------------#
#ScriptAlias /php/ "D:/wampp2c/php/"
#AddType application/x-httpd-php .php .php4 .php3 .phtml
#Action application/x-httpd-php "/php/php.exe"
#--PHP in CGI-Modus --------------------------------------#
#--PHP in API-Modus --------------------------------------#
LoadFile "D:/wampp2c/php/sapi/php4ts.dll"
LoadModule php4_module "D:/wampp2c/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .php4 .php3 .phtml
#--PHP in API-Modus --------------------------------------#
sieht schon passend vorbereitet aus.
Liebe Grüße aus http://www.braunschweig.de
Tom
Ne... das ist's eben nicht!
Diese Zeilen hab ich selber hineingeschrieben, das funktioniert jedoch nicht !!!
Gruss Reto
Hallo Reto,
ich hab das bei mir auch über die Installation gemacht. Da wurde dann nach API oder CGI gefragt.
Liebe Grüße aus http://www.braunschweig.de
Tom