Witam, mam skompilowane php + apache z suexec, dokładnie skompilowane z takimi parametrami:
php:
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr/local/mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit \
--enable-force-cgi-redirect \
--enable-fastcgi \
--enable-discard-path \
--with-iconv \
--with-imap=/usr/local/imap-2000e \
--with-imap-ssl
apache:
./configure \
--with-apache=../apache_1.3.35 \
--with-ssl=/usr \
--prefix=/etc/httpd \
--exec-prefix=/etc/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc/httpd/conf \
--enable-module=all \
--enable-module=ssl \
--enable-shared=max \
--enable-suexec \
--suexec-docroot=/ \
--suexec-caller=apache \
--suexec-userdir=public_html \
--includedir=/usr/include/apache \
--libexecdir=/usr/lib/apache \
--datadir=/var/www \
--iconsdir=/var/www/icons \
--htdocsdir=/var/www/html \
--manualdir=/var/www/html/manual \
--cgidir=/var/www/cgi-bin \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log/httpd \
--proxycachedir=/var/cache/httpd \
--with-perl=/usr/bin/perl \
--add-module=mod_frontpage.c \
--disable-module=auth_db --disable-module=auth_dbm
Jednak kiedy daje w pliku php system(whoami) zamiast nazwy usera ukazuje mi się apache... dlaczego?
Dodam jeszcze ze jest to system Debian...