4593274 [rkeene@sledge /home/rkeene/projects/build]$ cat suphp.txt
# RUNTIME REQUIREMENT: php-cgi

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-apache-user=www --with-logfile=/var/log/apache/suphp_log --with-apxs --with-php=/usr/bin/php --libdir="$libdir" && \
make || exit 1

cp /etc/apache/httpd.conf /tmp/httpd.conf-BACKUP || exit 1

cat <<EOF >install-scp.sh
#! /bin/sh

make install

cat <<SUBEOF >/etc/apache/mod_suphp.conf
#
# mod_suphp - PHP Hypertext Preprocessor module with SetUser capabilities
#

LoadModule suphp_module       libexec/apache/mod_suphp.so
AddModule mod_suphp.c

# Tell Apache to associate the correct content-type with PHP files.
AddType application/x-httpd-php .php

# This will display PHP files in colored syntax form.  Use with caution.
#AddType application/x-httpd-php-source .phps

# Tell Apache to handle x-httpd-php files.
AddHandler x-httpd-php .php

# Enable the suPHP mechanism.
suPHP_Engine on

SUBEOF

chmod u+s /usr/sbin/suphp

EOF
chmod +x install-scp.sh

${installmonitor} ./install-scp.sh || exit 1

mv /tmp/httpd.conf-BACKUP /etc/apache/httpd.conf
4593275 [rkeene@sledge /home/rkeene/projects/build]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2012-05-07 00:52:06