diff --git a/html/install.php b/html/install.php
index 942a5a612b..ea0a9640a3 100644
--- a/html/install.php
+++ b/html/install.php
@@ -183,7 +183,7 @@ foreach ($modules as $extension) {
echo "
PHP module $extension | $status | |
";
}
-if (is_writable(session_save_path())) {
+if (is_writable(session_save_path() === '' ? '/tmp' : session_save_path())) {
$status = 'yes';
$row_class = 'success';
} else {