From: moodler Date: Fri, 10 Jan 2003 07:33:26 +0000 (+0000) Subject: Put in a check for the sessions directory X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f978ad0acbb198cb5a43cb5129953d2366a63418;p=moodle.git Put in a check for the sessions directory --- diff --git a/admin/index.php b/admin/index.php index 894be6c843..b1c80d91b1 100644 --- a/admin/index.php +++ b/admin/index.php @@ -11,6 +11,14 @@ die; } +/// Check that sessions are supported + + if (!is_readable(ini_get('session.save_path'))) { + $sessionpath = ini_get('session.save_path'); + notify("Warning: It appears your server does not support sessions (session.save_path = '$sessionpath')"); + } + + /// Check that config.php has been edited if ($CFG->wwwroot == "http://example.com/moodle") { diff --git a/lang/en/docs/install.html b/lang/en/docs/install.html index 3f53e232fb..63b7dbd17f 100644 --- a/lang/en/docs/install.html +++ b/lang/en/docs/install.html @@ -45,7 +45,9 @@ or EasyPHP which will install Apache, PHP, and MySQL for you. Make sure you enable the GD module so Moodle can process images - you may have to edit php.ini and remove the comment (;) from this - line: 'extension=php_gd.dll'.

+ line: 'extension=php_gd.dll'. You may also have to fix the directory for + session.save_path - instead of the default "/tmp" use a Windows directory + like "c:/temp".

On Mac OS X I highly recommend the fink project as a way to download easily-maintainable packages for all of this. If you are less