Posts made by Martin Dougiamas

Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
There is NO need to edit lib/setup.php

However, you do need to read the directions in config.php a bit more closely than you have been:

$CFG->dirroot = "c:\easyserv\www\moodle";
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I really appreciate everyone who answers questions in this forum (instead of just asking them!) but I do need to correct you in this case, John. smile

Firstly, the only file you need to modify is config.php ... the database details are in there.

Secondly, I think the backslashes in the original post were probably stripped automatically by a little PHP bug which I've hopefully just fixed in Moodle.
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
You're right, the default is 1440. I don't know where I got the idea that 7200 is default - I must have changed it years ago on my servers and forgotten about it.

Anyhow, here is the entry you can set in .htaccess:

php_value session.gc_maxlifetime 7200

and I'll make this a new setting on the Moodle admin variables page as well.
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
PHP 4.3.0 includes GD (previously it was an external library) and is better anyway, so if you like RPMs then perhaps this will help:

http://www.aucs.org/rpmcenter/details/php-4.3.0/php-4.3.0-1.8.0.i386.rpm.html

otherwise download the source and configure it like this:

./configure --with-mysql --with-pgsql=/usr --enable-track-vars --enable-trans-sid --with-gd --with-jpeg-dir=/usr --with-ttf --with-zlib-dir=/usr --with-xpm-dir=/usr/X11R6 --with-freetype-dir=/usr --with-apxs=/opt/bin/apxs