aboutsummaryrefslogtreecommitdiffhomepage
path: root/check_setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'check_setup.php')
-rwxr-xr-x[-rw-r--r--]check_setup.php20
1 files changed, 3 insertions, 17 deletions
diff --git a/check_setup.php b/check_setup.php
index c86b17fa..cf02c34b 100644..100755
--- a/check_setup.php
+++ b/check_setup.php
@@ -1,22 +1,8 @@
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
10 if (! ini_get('short_open_tag')) {
11 die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
12 }
13}
14 2
15$writableFolders = array('cache', 'db', 'inc/3rdparty/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer'); 3// Check if /cache is writeable
16foreach ($writableFolders as $folder) { 4if (! is_writable('cache')) {
17 if (! is_writable($folder)) { 5 die('The directory "cache" must be writeable by your web server user');
18 die('The directory "' . $folder . '" must be writeable by your web server user');
19 }
20} 6}
21 7
22// install folder still present, need to install wallabag 8// install folder still present, need to install wallabag