From: Andrew Dolgov Date: Wed, 14 Dec 2011 05:38:56 +0000 (+0400) Subject: add test for LOCK_DIRECTORY X-Git-Tag: 1.5.8~13^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2604ad7d948117667550f9c487d6430a5c030d0b;p=tt-rss.git add test for LOCK_DIRECTORY --- diff --git a/include/sanity_check.php b/include/sanity_check.php index aebe4f89..224c13e9 100644 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -63,6 +63,10 @@ $err_msg = "ICONS_DIR defined in config.php is not writable (chmod -R 777 ".ICONS_DIR.").\n"; } + if (!is_writable(LOCK_DIRECTORY)) { + $err_msg = "LOCK_DIRECTORY defined in config.php is not writable (chmod -R 777 ".LOCK_DIRECTORY.").\n"; + } + if (ini_get("open_basedir")) { $err_msg = "PHP configuration option open_basedir is not supported. Please disable this in PHP settings file (php.ini)."; }