aboutsummaryrefslogtreecommitdiffhomepage
path: root/check_setup.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-22 21:26:02 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-22 21:26:02 +0200
commit1f78bd8471661ece8b386996ed30fd56255a2280 (patch)
treec24e74e85fc98ee7989f79707f7854eb60756279 /check_setup.php
parentf83ffc3ac3c843c17587827ad85f278818f69d78 (diff)
parent9c67b1b829290e5e78cb7da90acf285d6cd5c48f (diff)
downloadwallabag-1f78bd8471661ece8b386996ed30fd56255a2280.tar.gz
wallabag-1f78bd8471661ece8b386996ed30fd56255a2280.tar.zst
wallabag-1f78bd8471661ece8b386996ed30fd56255a2280.zip
Merge branch 'dev' of github.com:anno1337/wallabag into anno1337-dev
Diffstat (limited to 'check_setup.php')
-rw-r--r--check_setup.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/check_setup.php b/check_setup.php
index 2b84a744..7e378b15 100644
--- a/check_setup.php
+++ b/check_setup.php
@@ -1,25 +1,12 @@
1<?php 1<?php
2 2
3// PHP 5.3 minimum
4if (version_compare(PHP_VERSION, '5.3.3', '<')) {
5 die('This software require PHP 5.3.3 minimum');
6}
7
8// Short tags must be enabled for PHP < 5.4
9if (version_compare(PHP_VERSION, '5.4.0', '<')) {
10
11 if (! ini_get('short_open_tag')) {
12 die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
13 }
14}
15
16// Check if /cache is writeable 3// Check if /cache is writeable
17if (! is_writable('cache')) { 4if (! is_writable('cache')) {
18 die('The directory "cache" must be writeable by your web server user'); 5 die('The directory "cache" must be writeable by your web server user');
19} 6}
20 7
21// Check if /db is writeable 8// Check if /db is writeable
22if (! is_writable('db')) { 9if (! is_writable('db') && STORAGE === 'sqlite') {
23 die('The directory "db" must be writeable by your web server user'); 10 die('The directory "db" must be writeable by your web server user');
24} 11}
25 12