Since my moodle wwwroot
is ../cats, my '../moodle/config.php' should be ../cats/config.php' correct? and my CFG settings are in that file. In that directory there are several folders and other files: admin, auth, backup, blocks, calendar \etc, are the folders\ .
Here are the file contents: /*comments like this are not in the file and <var> means that's not really is what is there but a verified value that still doesn't work using moodle, only linux shell*/
$CFG->dbtype = 'mysql'; /* since I'm using MySQL */
$CFG->dbhost = 'ikm.york.edu'; /* db host
I can connect to using #mysql -h ... */
$CFG->dbname = 'moodle'; /* db I can change to using mysql> use moodle; */
$CFG->dbuser = 'moodleuser'; /* mysql I can connect to: #mysql -h <x> -u ... */
$CFG->dbpass = <mypass> ; /* my password that is in single quotes that works when I log in from the #mysql -h <x> -u <y> -p */
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';
$CFG->wwwroot = 'http://ikm.york.edu/cats'
= '/var/www/html/cats'; /* config.php and other files are here */ $CFG->dataroot
= <my data>; /*absolute path to moodle data in single quotes */
$CFG->admin = <admin username>; /* the login name for admin that uses the above password. It's in single quotes */
$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode
Three last questions:
1. Is there a second config.php somewhere that is overriding this one, or a different was for moodle to conect to the db?
2. Would it be worth it to reinstall everything?...that's where I am feeling about now.
3. How many additional "config" and "setup" files are scattered throughout the operating system that will have to be backed up to keep all the user info and course info in tact?