Normalizing with the Handlers uses by mire, without php4 support.
files/conf.d/* etc/apache2/conf.d
files/apache_in.rules etc/ferm/service.in.d
files/apache_out.rules etc/ferm/service.out.d
-files/www-data.hcoop etc/apache2/suexec
\ No newline at end of file
+files/www-data.hcoop etc/apache2/suexec
+files/suphp.conf.hcoop etc/suphp
+files/mods-available/suphp.conf.hcoop etc/apache2/mods-available
\ No newline at end of file
DEB_DIVERT_EXTENSION =.hcoop
DEB_DIVERT_FILES_hcoop-apache2-config += \
- /etc/apache2/suexec/www-data.hcoop
+ /etc/apache2/suexec/www-data.hcoop \
+ /etc/suphp/suphp.conf.hcoop \
+ /etc/apache2/mods-available/suphp.conf.hcoop
DEB_DH_INSTALL_CRON_ARGS_DEFAULT = --name=hcoop-apache-sync-logs
--- /dev/null
+<IfModule mod_suphp.c>
+ AddType application/x-httpd-php .php .phtml
+ AddType application/x-httpd-php5 .php5
+ AddHandler x-httpd-php .php .phtml
+ AddHandler x-httpd-php5 .php5
+ suPHP_AddHandler x-httpd-php
+ suPHP_AddHandler x-httpd-php5
+
+ <Directory /afs/hcoop.net>
+ suPHP_Engine on
+ </Directory>
+
+# # Use a specific php config file (a dir which contains a php.ini file)
+# suPHP_ConfigPath /etc/php4/cgi/suphp/
+# # Tells mod_suphp NOT to handle requests with the type <mime-type>.
+# suPHP_RemoveHandler <mime-type>
+</IfModule>
--- /dev/null
+[global]
+;Path to logfile
+logfile=/var/log/suphp/suphp.log
+
+;Loglevel
+loglevel=info
+
+;User Apache is running as
+webserver_user=www-data
+
+;Path all scripts have to be in
+docroot=/afs/hcoop.net/*
+
+;Path to chroot() to before executing script
+;chroot=/mychroot
+
+; Security options
+; HCoop: we don't have to care about group/others, since afs ignores
+; unix permissions
+allow_file_group_writeable=true
+allow_file_others_writeable=true
+allow_directory_group_writeable=true
+allow_directory_others_writeable=true
+
+;Check wheter script is within DOCUMENT_ROOT
+check_vhost_docroot=true
+
+;Send minor error messages to browser
+errors_to_browser=false
+
+;PATH environment variable
+env_path=/bin:/usr/bin
+
+;Umask to set, specify in octal notation
+umask=0077
+
+; Minimum UID
+min_uid=100
+
+; Minimum GID
+min_gid=100
+
+
+[handlers]
+;Handler for php-scripts
+x-httpd-php="php:/usr/bin/php-cgi"
+x-httpd-php5="php:/usr/bin/php5-cgi"
+
+;Handler for CGI-scripts
+x-suphp-cgi="execute:!self"