diff --git a/html/install.php b/html/install.php index 06769f44ae70..26d92b27848a 100644 --- a/html/install.php +++ b/html/install.php @@ -92,12 +92,11 @@ ?> - + <?php echo($config['page_title_prefix']); ?> - - - + + @@ -105,40 +104,27 @@ -
-
-
-
+

Welcome to the install

-
-
-
-
-
+

Stage of complete

-
-
-
-
-
+
-
-
-
-
-
+
% Complete
-
-
-
-
-
-
Checking PHP module support
-
-
+
+

Pre-Install Checks

-
-
-
+
- - + + - - "); - if ($ext_loaded == 'no') { - echo(""); - } else { - echo(""); - } - echo(""); + echo ""; } - // Check for pear install - @include_once 'System.php'; - -if (class_exists('System') === true) { - $ext_loaded = 'yes'; +if (is_writable(session_save_path())) { + $status = 'yes'; $row_class = 'success'; } else { - $ext_loaded = 'no'; + $status = 'no'; $row_class = 'danger'; + $complete = false; } - echo(" - - "); -if ($ext_loaded == 'no') { - echo(""); -} else { - echo(""); +echo ""); +echo ""; ?>
ModuleInstalledItemStatus Comments
$extension$ext_loaded
PHP module $extension$status
pear$ext_loadedapt-get install php-pear / yum install php-pear
Session directory writable$status"; +if ($status == 'no') { + echo session_save_path() . " is not writable"; + $group_info = posix_getgrgid(filegroup(session_save_path())); + if ($group_info['gid'] !== 0) { // don't suggest adding users to the root group + $group = $group_info['name']; + $user = get_current_user(); + echo ", suggested fix usermod -a -G $group $user"; + } } - echo("
-
-
-
-
-
+
-
-
-