cd /usr/local/directadmin/customapache
wget http://de.php.net/get/php-5.2.1.tar.gz/from/this/mirror
wget http://www.suphp.org/download/suphp-0.6.2.tar.gz
tar xzf php-5.2.1.tar.gz
tar xzf suphp-0.6.2.tar.gz
cd php-5.2.1
./configure --prefix=/usr/local/php5 --enable-force-cgi-redirect --enable-fastcgi --with-config-file-path=/usr/local/etc/php5/cgi --with-curl --with-curl-dir=/usr/local/lib --with-gd --with-gd-dir=/usr/local/lib --with-gettext --with-jpeg-dir=/usr/local/lib --with-kerberos --with-mcrypt --with-mhash --with-mysql=/usr --with-pear --with-png-dir=/usr/local/lib --with-xml --with-zlib --with-zlib-dir=/usr/local/lib --with-zip --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars --enable-mbstring --enable-memory-limit
make
make install
cd ../suphp-0.6.2
./configure --prefix=/usr/local/suphp --sysconfdir=/usr/local/suphp/etc/ --with-apache-user=apache --with-setid-mode=owner --with-apxs=/usr/sbin/apxs --disable-checkpath
make
make install
mkdir -p /usr/local/etc/php5/cgi
mkdir -p /usr/local/suphp/etc
cp ../php-5.2.1/php.ini-dist /usr/local/etc/php5/cgi/php.ini
cp /etc/httpd/conf/httpd.conf httpd.conf.original
touch /var/log/suphp.log
echo "webserver_user=apache" > /usr/local/suphp/etc/suphp.conf
echo "docroot=/" >> /usr/local/suphp/etc/suphp.conf
echo "check_vhost_docroot=false" >> /usr/local/suphp/etc/suphp.conf
echo "x-httpd-php=php:/usr/local/php5/bin/php" >> /usr/local/suphp/etc/suphp.conf