aboutsummaryrefslogtreecommitdiffhomepage
path: root/check_setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'check_setup.php')
-rw-r--r--check_setup.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/check_setup.php b/check_setup.php
index 2b84a744..eee5d24a 100644
--- a/check_setup.php
+++ b/check_setup.php
@@ -1,5 +1,4 @@
1<?php 1<?php
2
3// PHP 5.3 minimum 2// PHP 5.3 minimum
4if (version_compare(PHP_VERSION, '5.3.3', '<')) { 3if (version_compare(PHP_VERSION, '5.3.3', '<')) {
5 die('This software require PHP 5.3.3 minimum'); 4 die('This software require PHP 5.3.3 minimum');
@@ -13,14 +12,11 @@ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
13 } 12 }
14} 13}
15 14
16// Check if /cache is writeable 15$writableFolders = array('cache', 'db');
17if (! is_writable('cache')) { 16foreach ($writableFolders as $folder) {
18 die('The directory "cache" must be writeable by your web server user'); 17 if (! is_writable($folder)) {
19} 18 die('The directory "' . $folder . '" must be writeable by your web server user');
20 19 }
21// Check if /db is writeable
22if (! is_writable('db')) {
23 die('The directory "db" must be writeable by your web server user');
24} 20}
25 21
26// install folder still present, need to install wallabag 22// install folder still present, need to install wallabag