aboutsummaryrefslogtreecommitdiffstats
path: root/config/apache_mod_security
diff options
context:
space:
mode:
Diffstat (limited to 'config/apache_mod_security')
-rw-r--r--config/apache_mod_security/apache_mod_security.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc
index 8475ca50..8bcf3ddd 100644
--- a/config/apache_mod_security/apache_mod_security.inc
+++ b/config/apache_mod_security/apache_mod_security.inc
@@ -1005,7 +1005,9 @@ SSLRandomSeed connect builtin
Include etc/apache22/Includes/*.conf
EOF;
-
+ if (!is_dir('/usr/local/etc/apache22')) {
+ mkdir('/usr/local/etc/apache22', 0775, true);
+ }
$fd = fopen("/usr/local/etc/apache22/httpd.conf", "w");
if(!$fd) {
$error_text = "Could not open httpd.conf for writing!";