aboutsummaryrefslogtreecommitdiffhomepage
path: root/check_setup.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-23 13:42:30 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-23 13:42:30 +0200
commit505a74ad1de7cf2cd3605e793233365501f03d87 (patch)
tree41206132200aa9390e11d600ad2b84ffa23242e4 /check_setup.php
parenta818ff2000c721c6f078c206c3f5214c558a5546 (diff)
parentebd6bf6007e0fad4c3e11dac0e79f687e1d195a2 (diff)
downloadwallabag-505a74ad1de7cf2cd3605e793233365501f03d87.tar.gz
wallabag-505a74ad1de7cf2cd3605e793233365501f03d87.tar.zst
wallabag-505a74ad1de7cf2cd3605e793233365501f03d87.zip
Merge branch 'dev' into refactor
Conflicts: check_setup.php index.php
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