summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/check_setup.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/check_setup.php b/app/check_setup.php
index d6fbd4dd..eec63ed8 100644
--- a/app/check_setup.php
+++ b/app/check_setup.php
@@ -19,6 +19,11 @@ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
}
}
+// Check data folder if sqlite
+if (DB_DRIVER === 'sqlite' && ! is_writable('data')) {
+ throw new Exception('The directory "data" must be writeable by your web server user');
+}
+
// Check PDO extensions
if (DB_DRIVER === 'sqlite' && ! extension_loaded('pdo_sqlite')) {
throw new Exception('PHP extension required: "pdo_sqlite"');