aboutsummaryrefslogtreecommitdiffhomepage
path: root/check_setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'check_setup.php')
-rw-r--r--check_setup.php21
1 files changed, 6 insertions, 15 deletions
diff --git a/check_setup.php b/check_setup.php
index eee5d24a..7e378b15 100644
--- a/check_setup.php
+++ b/check_setup.php
@@ -1,22 +1,13 @@
1<?php 1<?php
2// PHP 5.3 minimum
3if (version_compare(PHP_VERSION, '5.3.3', '<')) {
4 die('This software require PHP 5.3.3 minimum');
5}
6
7// Short tags must be enabled for PHP < 5.4
8if (version_compare(PHP_VERSION, '5.4.0', '<')) {
9 2
10 if (! ini_get('short_open_tag')) { 3// Check if /cache is writeable
11 die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"'); 4if (! is_writable('cache')) {
12 } 5 die('The directory "cache" must be writeable by your web server user');
13} 6}
14 7
15$writableFolders = array('cache', 'db'); 8// Check if /db is writeable
16foreach ($writableFolders as $folder) { 9if (! is_writable('db') && STORAGE === 'sqlite') {
17 if (! is_writable($folder)) { 10 die('The directory "db" must be writeable by your web server user');
18 die('The directory "' . $folder . '" must be writeable by your web server user');
19 }
20} 11}
21 12
22// install folder still present, need to install wallabag 13// install folder still present, need to install wallabag