PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache2 / suPHP / Modul laden?



Legato
18.06.04, 12:58
hallo,

nach langer Zeit beschäftige ich mich mal wieder mit Linux.
Die letzten Tage haben mal wieder richtig spaß gemacht ;-)

Ich habe hier jetzt einen kleinen Server (mit Debian woody 3.0r2) stehen, auf dem ich verschiedene Pakete installiert habe:

apache2-mpm-worker 2.0.49 von backports.org
einige php4-* pakete von dotdeb.org

suPHP 0.5.1 selbstkompiliert.

Die Kompilierung hat geklappt, hier mal mein configure string:


./configure --with-min-uid=30 --with-min-gid=30 --with-apache-user=www-data --with-php=/usr/lib/cgi-bin/php4 --with-logfile=/var/log/apache2/suphp.log --with-apxs=/usr/bin/apxs2


Die Pfade sind korrekt...

make install wird hiermit abgeschlossen:


See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib/apache2/modules/mod_suphp.so
apxs:Error: Activation failed for custom /etc/apache2/apache2.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make[2]: *** [install] Error 1
make[2]: Leaving directory `/usr/local/src/suphp-0.5.1/src/apache2'
make[1]: Leaving directory `/usr/local/src/suphp-0.5.1/src'

Also denke ich mal, dass er da in apache2.conf seine Einstellunge schreiben wollte, hat aber keine LoadModule gefunden wo er sein eigenes anhängen konnte.

Na gut, also selber machen.
ich habe das kompilierte mod_suphp.so dann nach /etc/apache2/mods-enabled kopiert.
in die httpd.conf habe ich dann das hier geschrieben:


LoadModule suphp_module /etc/apache2/mods-enabled/mod_suphp.so
suPHP_Engine On$
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


Ich denke mal, dass der Apache2 das ganze etwas anders haben will?
Muss das an eine andere Stelle?

in der apache.conf steht u.a. das hier:


# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf


Was bedeute das? gibt es für manche module solche Dateien? wie erstelle ich sowas für suPHP? oder gibts das irgendwo?

Jedenfalls startet der apache2 mit diesen Einstellungen, allerdings bekomme ich .php Dateien immernoch zum Download angeboten...

Bin da für jeden Hinweis dankbar... :-)
Legato

Legato
18.06.04, 17:19
ein blick in die suphp.log ergab, das es an rechten lag - da ich mit UID > 0 kompiliert hatte darf die datei natürlich nicht root gehören.
Das war aber der fall...

Besitzer geändert und nun fluppts...

wer lesen kann....