Apache with suEXEC

Benjamin Boksa benjamin at boksa.de
Mon Feb 16 04:26:36 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I try to install apache 2.0.48 based on the commands in the BLFS 5.0  
book with suEXEC enabled, but somehow suEXEC doesn't work (see the end  
of the Email for the exact commands I use)

What can be the problem? What have I done wrong (I never had any  
problem using suEXEC with apache 1.3.x)?

It would be great if you could give me some information about how to  
use suEXEC.

Thanks a lot in advance,

Benne

- --

cd /usr/local/src

curl -O http://www.apache.de/dist/httpd/httpd-2.0.48.tar.gz
curl -O  
http://lfs.linux-matrix.net/patches/downloads/httpd/httpd-2.0.48- 
config.patch

tar xvfz httpd-2.0.48.tar.gz
rm httpd-2.0.48.tar.gz

cd httpd-2.0.48

patch -Np1 -i ../httpd-2.0.48-config.patch

./configure --enable-layout=LFS \
- --enable-mods-shared=all \
- --enable-so \
- --enable-cgi \
- --enable-suexec \
- --with-suexec-caller=apache \
- --with-suexec-docroot=/www \
- --with-suexec-logfile=/var/log/apache/suexec_log \
- --with-suexec-bin=/usr/sbin/suexec \
- --with-suexec-uidmin=1000 --with-suexec-gidmin=100 \
- --with-ssl
make
make install

chown root:root  
/usr/sbin/{apxs,apachectl,dbmmanage,envvars-std,envvars} &&
chown -R root:root /usr/{include,lib}/apache &&
chown -R root:root /var/www &&
chown -R root:root /usr/share/man

chown root:apache /usr/sbin/suexec
chmod 4750 /usr/sbin/suexec

killall httpd
/etc/rc.d/init.d/apache start
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAMLcAR5U9XkJXZKwRAt9ZAJ9A3M1ewyTY945QHGN9NNEPTF03wgCbB2XK
aXT5hmmf2JWeE9qjeR0oAZg=
=vWWZ
-----END PGP SIGNATURE-----




More information about the blfs-support mailing list