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";
Martin Dougiamas
Posts made by Martin Dougiamas
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. 
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.
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.
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:
and I'll make this a new setting on the Moodle admin variables page as well.
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.
Yes, that should work (depending on the theme). Set the third parameter of print_header() to "home".
Strange, you're the third person in a week to want this exact same thing.
Strange, you're the third person in a week to want this exact same thing.
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
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