View previous topic :: View next topic |
Author |
Message |
BlackEye l33t
Joined: 04 Dec 2002 Posts: 756 Location: Germany
|
Posted: Tue Sep 07, 2004 2:55 pm Post subject: apache2 benutzt suexec nicht |
|
|
Hallo!
Laut der Doku von apache müsst im errorlog von Apache nach dem starten desselben folgender Eintrag kommen
Quote: | [notice] suEXEC mechanism enabled (wrapper: /path/to/suexec) |
nach einer Installation von Apache2 durch Portage und einer Veränderung des docroot im ebuild, bekomme ich aber leider keine solche Meldung
Quote: | p15140194 build # cat /var/log/apache2/error_log | grep -i suexec
p15140194 build # |
Ergo: suexec ist nicht geladen. Warum frag ich mich?
Ohne richtiges Laden von suexec funktioniert Apache nicht (syntaxfehler beim starten wegen 'SuexecUserGroup' Parameter in Config-Files)
Quote: | p15140194 sbin # l | grep suexec
lrwxrwxrwx 1 root root 7 7. Sep 16:28 suexec -> suexec2
-rws--x--- 1 root apache 11K 7. Sep 10:03 suexec2 |
Ich hab mal ein symlink von suexec nach suexec2 angelegt. Denn es wird nur die suexec2 installiert. Brachte aber auch nix. Jetzt könnte es nur noch sein, dass apache suexec nicht findet. Die frage ist nur warum und wo sucht Apache?
Wäre für Hilfestellungen SEHR dankbar, da ich sonst mit der Install hier nicht fertig werde. Nur irgendwie bekomme ich da keine Ideen mehr...
Noch so als Anlage:
Code: | [...]
./configure \
--with-suexec-safepath="/usr/local/bin:/usr/bin:/bin" \
--with-suexec-logfile=/var/log/apache2/suexec_log \
--with-suexec-bin=/usr/sbin/suexec2 \
--with-suexec-userdir=${USERDIR} \
--with-suexec-caller=apache \
--with-suexec-docroot=/home/www \
--with-suexec-uidmin=100 \
--with-suexec-gidmin=100 \
--with-suexec-umask=077 \
--enable-suexec=shared \
\
${MY_BUILTINS} \
\
--cache-file=${S}/config.cache \
--with-perl=/usr/bin/perl \
--with-expat=/usr \
--with-ssl=/usr \
--with-z=/usr \
--with-port=80 \
--enable-layout=Gentoo \
--with-program-name=apache2 \
--with-devrandom=/dev/urandom \
[...]
|
So sieht das Ebuild aus.. ich hab _nur_ -with-suexec-docroot und --with-suexec-uidmin geändert...
Gruß,
Martin |
|
Back to top |
|
|
matin n00b
Joined: 09 Sep 2004 Posts: 1
|
Posted: Thu Sep 09, 2004 7:43 pm Post subject: |
|
|
LoadModule suexec_module modules/mod_suexec.so
muss in deiner apache2.conf noch eingetragen werden, dann sollte es funktionieren.
Gruß
Martin |
|
Back to top |
|
|
BlackEye l33t
Joined: 04 Dec 2002 Posts: 756 Location: Germany
|
Posted: Thu Sep 09, 2004 8:04 pm Post subject: |
|
|
korrekt
danke!
so funktioniert das jetzt! |
|
Back to top |
|
|
|