Commit 9b901270 authored by Chenu Denis's avatar Chenu Denis

[Fix] Unable to install due to lack of runtimePath

- Fix https://framagit.org/Shnoulle/LimeSurvey/issues/4
parent 9f7c5bfe
# Change Log
Only partial changelog, [commit history](https://framagit.org/Shnoulle/LimeSurvey/commits/2.06_SondagesPro) show all changelog.
## [Unreleased]
### Fix
- Unable to install (runtimePath)
## [1.5.3] - 2017-06-17
### Dev
......
......@@ -200,10 +200,10 @@ $config = require_once(APPPATH . 'config/internal' . EXT);
if (!file_exists(APPPATH . 'config/config' . EXT)) {
// If Yii can not start due to unwritable runtimePath, present an error
$runtimePath = $config['runtimePath'];
if (!is_dir($runtimePath) || !is_writable($runtimePath)) {
$sDefaultRuntimePath = realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.'runtime');
if (!is_dir($sDefaultRuntimePath) || !is_writable($sDefaultRuntimePath)) {
// @@TODO: present html page styled like the installer
die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath));
die (sprintf('%s should be writable by the webserver (766 or 776).', $sDefaultRuntimePath));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment