]> git.immae.eu Git - github/wallabag/wallabag.git/blame - check_setup.php
Improved instructions
[github/wallabag/wallabag.git] / check_setup.php
CommitLineData
792097fb 1<?php
792097fb
NL
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
58dbe103 15$writableFolders = array('cache', 'db', 'inc/3rdparty/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer');
3602405e
NL
16foreach ($writableFolders as $folder) {
17 if (! is_writable($folder)) {
18 die('The directory "' . $folder . '" must be writeable by your web server user');
19 }
792097fb
NL
20}
21
22// install folder still present, need to install wallabag
23if (is_dir('install')) {
24 require('install/index.php');
25 exit;
26}