Announcement

Collapse
No announcement yet.

PHP als Modul unter Apache

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP als Modul unter Apache

    Hallo Leute,
    ich will PHP als Modul unter Apache laufen lassen (als CGI läuft das schon).
    Wenn ich aber diese Zeile in meine httpd.conf einfüge:
    LoadModule php4_module cgi-bin/php4apache2.dll

    und Apache neu starte kommt folgende Meldung:
    The requested operation has failed!

    Die DLL-Datei ist im dem entsprechende Verzeichnis.
    Was mache ich falsch? Wer benutzt PHP als Modul und kann mir helfen?
    bye
    Chakan

    httpd.conf
    # LoadModule foo_module modules/mod_foo.so
    #
    LoadModule php4_module cgi-bin/php4apache2.dll
    LoadModule access_module modules/mod_access.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule alias_module modules/mod_alias.so

    Das merkkwürdige ist, dass bei den anderen Modulen die Dateiendung *.so ist.

    OS: Windows XP
    Apache: 2.0.39
    PHP: 4.2.3

    Bitte nicht auf irgendeine Seite hinweisen, wie ich das konfigurieren muss. Hab das schon alles probiert.

  • #2
    Hallo Ali,

    würde dir ja gerne helfen weiß aber nicht wie das unter XP (*würg*) funktioniert. Unter Linux ist das so, daß Du den Apache natürlich so kompilieren mußt, das es DSO unterstützt.

    ./configure
    --prefix=/usr/local/apache (oder wo immer er hin soll)
    --enable-module=most
    --enable-shared=max

    make
    make install

    Und dann muß PHP so kompiliert werden, daß es als DSO Modul installiert wird.

    ./configure --with-mysql \
    --enable-track-vars \
    --with-apxs=/usr/local/apache/bin/apxs (Oder wo immer der Apache steht)

    make
    make install

    Wie gesagt unter XP kriegste die Software wohl nur als Binaries.

    Vielleicht hat ja jemand anderes hier Erfahrungen mit der Konstellation.

    Mann

    Comment

    Working...
    X