Reto Strub: API-PHP auf nem Apache 2

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

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

    --
    Intelligenz ist die Fähigkeit, aus Fehlern Anderer zu lernen und Mut die, eigene zu machen.
    1. Ne... das ist's eben nicht!

      Diese Zeilen hab ich selber hineingeschrieben, das funktioniert jedoch nicht !!!

      Gruss Reto

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

        --
        Intelligenz ist die Fähigkeit, aus Fehlern Anderer zu lernen und Mut die, eigene zu machen.