Package: cacti
Version: 0.8.7e-4
Severity: minor
Tags: patch

Hi,

The shipped Apache configuration includes php_flag and php_value directives, 
which assumes that PHP is configured to run as an Apache module. These 
directives however make Apache fail to start when running PHP as a FastCGI 
process, which is not an uncommon setup.

Attached patch wraps those directives in an IfModule clause. Also, I've 
changed DirectoryMatch to Directory since it doesn't use any wildcards in the 
pattern.


Cheers,
Thijs

-- 
Thijs Kinkhorst <th...@uvt.nl> – LIS Unix

Universiteit van Tilburg – Library and IT Services • Postbus 90153, 5000 LE
Bezoekadres > Warandelaan 2 • Tel. 013 466 3035 • G 236 • http://www.uvt.nl
diff -Nur cacti-0.8.7e.orig/debian/cacti.apache.conf cacti-0.8.7e/debian/cacti.apache.conf
--- cacti-0.8.7e.orig/debian/cacti.apache.conf	2010-08-16 10:07:19.000000000 +0200
+++ cacti-0.8.7e/debian/cacti.apache.conf	2010-08-16 10:09:00.141886290 +0200
@@ -1,6 +1,6 @@
 Alias /cacti /usr/share/cacti/site
 
-<DirectoryMatch /usr/share/cacti/site>
+<Directory /usr/share/cacti/site>
 	Options +FollowSymLinks
 	AllowOverride None
 	order allow,deny
@@ -8,15 +8,17 @@
 
 	AddType application/x-httpd-php .php
 
-	php_flag magic_quotes_gpc Off
-	php_flag short_open_tag On
-	php_flag register_globals Off
-	php_flag register_argc_argv On
-	php_flag track_vars On
-	# this setting is necessary for some locales
-	php_value mbstring.func_overload 0
-	php_value include_path .
+	<IfModule mod_php5.c>
+		php_flag magic_quotes_gpc Off
+		php_flag short_open_tag On
+		php_flag register_globals Off
+		php_flag register_argc_argv On
+		php_flag track_vars On
+		# this setting is necessary for some locales
+		php_value mbstring.func_overload 0
+		php_value include_path .
+	</IfModule>
 
 	DirectoryIndex index.php
-</DirectoryMatch>
+</Directory>
 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to