diff --git a/distros/debian/apache.conf b/distros/debian/apache.conf
index 9a3238807..9a5e02690 100644
--- a/distros/debian/apache.conf
+++ b/distros/debian/apache.conf
@@ -1,8 +1,20 @@
Alias /zm /usr/share/zoneminder/www
-
- Options -Indexes +FollowSymLinks
-
- DirectoryIndex index.php
-
-
+
+
+ Options +ExecCGI
+ AllowOverride All
+ AddHandler fcgid-script .php
+ FCGIWrapper /usr/bin/php5-cgi
+ Order allow,deny
+ Allow from all
+
+
+
+
+ Options Indexes FollowSymLinks
+
+ DirectoryIndex index.php
+
+
+