Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 benutzt suexec nicht
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
BlackEye
l33t
l33t


Joined: 04 Dec 2002
Posts: 756
Location: Germany

PostPosted: Tue Sep 07, 2004 2:55 pm    Post subject: apache2 benutzt suexec nicht Reply with quote

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
View user's profile Send private message
matin
n00b
n00b


Joined: 09 Sep 2004
Posts: 1

PostPosted: Thu Sep 09, 2004 7:43 pm    Post subject: Reply with quote

LoadModule suexec_module modules/mod_suexec.so

muss in deiner apache2.conf noch eingetragen werden, dann sollte es funktionieren.

Gruß
Martin
Back to top
View user's profile Send private message
BlackEye
l33t
l33t


Joined: 04 Dec 2002
Posts: 756
Location: Germany

PostPosted: Thu Sep 09, 2004 8:04 pm    Post subject: Reply with quote

korrekt :)
danke!

so funktioniert das jetzt!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum