aboutsummaryrefslogtreecommitdiff
path: root/network/suphp/config
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-12 17:44:15 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:44:15 +0200
commitf8d56146fdf8f4ea9e0b4eb34db68eb2dfc1a375 (patch)
tree3cf3f4187e631c3b63d728751dceefb5541fb02b /network/suphp/config
parent633d26a36c9442789a3898508ad14b40589ad070 (diff)
network/suphp: Updated for version 0.7.1
Diffstat (limited to 'network/suphp/config')
-rw-r--r--network/suphp/config/mod_suphp.conf41
-rw-r--r--network/suphp/config/suphp.conf56
2 files changed, 97 insertions, 0 deletions
diff --git a/network/suphp/config/mod_suphp.conf b/network/suphp/config/mod_suphp.conf
new file mode 100644
index 0000000000000..60d6d157f283f
--- /dev/null
+++ b/network/suphp/config/mod_suphp.conf
@@ -0,0 +1,41 @@
+# ===========================
+# == suPHP Apache module ==
+# ===========================
+
+# Invite this baby in.
+LoadModule suphp_module /usr/lib/httpd/modules/mod_suphp.so
+
+# Tell her what maybe on the menu here.
+AddHandler x-httpd-php .php .php3 .php4 .php5
+
+# This option tells mod_suphp if a PHP-script requested on this server (or
+# VirtualHost) should be run with the PHP-interpreter or returned to the
+# browser "as it is".
+suPHP_Engine on
+
+# This option tells mod_suphp which path to pass on to the PHP-interpreter
+# (by setting the PHPRC environment variable).
+# Do *NOT* refer to a file but to the directory the file resists in.
+# If you don't use this option, PHP will use its compiled in default path.
+#suPHP_ConfigPath (expects a path name)
+
+# Specify the user- and groupname to run PHP-scripts with. This setting
+# can only be used within a <Directory> or <Location> context.
+suPHP_UserGroup nfsnobody users
+
+# Tells mod_suphp to handle requests with the type <mime-type>.
+# Please note this only works, if an action for the handler is specified
+# in the suPHP configuration file. Settings on per-directory level supersede
+# settings made on per-server level.
+suPHP_AddHandler x-httpd-php
+
+# Tells mod_suphp NOT to handle requests with the type <mime-type>. This will
+# override the suPHP_AddHandler setting made on a higher configuration level.
+#suPHP_RemoveHandler <mime-type>
+
+# Sets the path to the PHP binary that is used to render files with the
+# "x-httpd-php" or "application/x-httpd-php" type. This setting does
+# *NOT* affect the PHP binary used for serving script requests, which is
+# still configured in suphp.conf.
+#suPHP_PHPPath (expects a path name)
+
diff --git a/network/suphp/config/suphp.conf b/network/suphp/config/suphp.conf
new file mode 100644
index 0000000000000..b973e9f97ed97
--- /dev/null
+++ b/network/suphp/config/suphp.conf
@@ -0,0 +1,56 @@
+[global]
+; Path to logfile
+; This is set to where Apache logs reside aswell
+logfile=/var/log/httpd/suphp_log
+
+; Loglevel
+loglevel=info
+
+; User Apache is running as
+webserver_user=apache
+
+; Path all scripts have to be in
+; This should reflect the vhosts DocumentRoot
+docroot=/var/www:${HOME}/public_html
+
+; Path to chroot() to before executing script
+;chroot=/mychroot
+
+; Security options
+; Note: RedHat-like systems expect 'group_writeable' privs
+allow_file_group_writeable=false
+allow_file_others_writeable=false
+allow_directory_group_writeable=false
+allow_directory_others_writeable=false
+
+; Check wheter script is within DOCUMENT_ROOT
+check_vhost_docroot=true
+
+; Send minor error messages to browser
+errors_to_browser=true
+
+; PATH environment variable
+env_path=/bin:/usr/bin
+
+; Umask to set, specify in octal notation
+; Provided all users are in the 'users' group 072,
+; makes sure they cannot mess about eachothers files.
+; Note: homedirs can have <username>:apache 0710 perms!
+umask=0072
+
+; Minimum UID
+; The default Slackware NIS config uses this UID boundry
+min_uid=500
+
+; Minimum GID
+; The 'users' group
+min_gid=100
+
+[handlers]
+; Handler for php-scripts
+x-httpd-php="php:/usr/bin/php-cgi"
+
+; Handler for CGI-scripts
+; Similar in functionality to suEXEC
+x-suphp-cgi="execute:!self"
+