X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a115da22ff8284a961e5853333f65f5768db1de1..7c9f391d66e4e984a1d23632811ca885d7266676:/dbinstall.php
diff --git a/dbinstall.php b/dbinstall.php
index a3cdd9cc..d39871f8 100644
--- a/dbinstall.php
+++ b/dbinstall.php
@@ -92,6 +92,11 @@ if ($request->isGet()) {
echo('Error: PHP version is not high enough: '.phpversion().'. Required: '.$required_version.'.
');
}
+ // Check is PHP session path is writeable.
+ if (!is_writable(session_save_path())) {
+ echo('Error: PHP session path '.session_save_path().' is not writable.
');
+ }
+
// Depending on DSN, require either mysqli or mysql extensions.
if (strrpos(DSN, 'mysqli://', -strlen(DSN)) !== FALSE) {
if (extension_loaded('mysqli')) {