Error after install/configure

Error after install/configure

Andrew Millichamp གིས-
Number of replies: 2

I have installed a first instance of Moodle okay and it is still working. I have tried to install a second instance: the setup routine seemed to go fine, but I get an error:

Warning: main(/home/ntrl/public_html/clients/comprehend/lib/smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/ntrl/public_html/clients/comprehend/lib/setup.php on line 104

Apart from different folders, I can't see any difference between the first config.php file (which works) and the new one. If have listed both files below (username, password and domain substituted)

Thanks.

config.php from orginal instance (working):

<?php  /// Moodle Configuration File

unset($CFG);

$CFG->dbtype    = 'mysql';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'ntrl_moodle1db';
$CFG->dbuser    = '[username]';
$CFG->dbpass    = '[password]';
$CFG->dbpersist =  false;
$CFG->prefix    = 'mdl_';

$CFG->wwwroot   = 'http://www.mydomain.com/clients/moodle';
$CFG->dirroot   = '/home/ntrl/public_html/clients/moodle';
$CFG->dataroot  = '/home/ntrl/public_html/clients/moodledata';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>

config.php from new instance (not working):

<?php  /// Moodle Configuration File

unset($CFG);

$CFG->dbtype    = 'mysql';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'ntrl_moodle1db';
$CFG->dbuser    = '[username]';
$CFG->dbpass    = '[password]';
$CFG->dbpersist =  false;
$CFG->prefix    = 'com';

$CFG->wwwroot   = 'http://www.mydomain.com/clients/comprehend';
$CFG->dirroot   = '/home/ntrl/public_html/clients/comprehend';
$CFG->dataroot  = '/home/ntrl/public_html/clients/comprehenddata';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>

དཔྱ་སྙོམས་ཀྱི་སྐུགས་ཚུ།: -
In reply to Andrew Millichamp

Re: Error after install/configure

Frank Hoffman གིས-
Getting same error message on a new install. It appears to be a missing file