I'm assigned to do some theming tasks on existing site, but had problem setting up site locally. I was provided with sites files and sites/design folder which consist of settings.php,modules,themes. I created a multi-site structure. I was also provided with one database file d6_design.sql. Apparently, this site is based on d6_design database and also sync data from other website which use database d6_liaa. So the thing is, when I launch site locally I get an error Table d6_liaa.users does not exist. and some other errors related to d6_liaa database. The main content is seems to be stored on d6_design database, but users and other tables from d6_liaa database. So my question is if the provided data is enough to launch the site locally and if yes, then what's wrong with my setup or settings.php file and I can't create connection with the site database, otherwise am I supposed to have database d6_liaa. The following is provided settings.php content adjusted to my localhost settings. Also after setting up page and seeing table not found error hitting the refresh page button everything just crashes and Page is not available. In settings.php file I can see that some kind of connection is declared to d6_liaa database, but is that meant locally or by accessing site.

$db_url = 'mysql://root@localhost/d6_design';

$conf['cache_inc'] = './sites/all/modules/cacherouter/cacherouter.inc';
$conf['cacherouter'] = array(
   'default' => array(
    'engine' => 'apc',
    'servers' => array(),
    'shared' => TRUE,
    'prefix' => 'design',
    'static' => FALSE,
    'fast_cache' => TRUE,

$db_prefix = array(
'default' => '',
'users' => 'd6_liaa.',
'sessions' => 'd6_liaa.',
'authmap' => 'd6_liaa.',
'profile_fields' => 'd6_liaa.',
'profile_values' => 'd6_liaa.',
'drconnect_users' => 'd6_liaa.',
'fbconnect_users' => 'd6_liaa.',
'linkedin_token'  => 'd6_liaa.',
'twitter_account'  => 'd6_liaa.',

$conf['install_profile'] = 'd6_liaa';
$conf['maintenance_theme'] = 'design';
$conf['site_name']         = '';

$conf['insert_absolute_paths'] = FALSE;

$conf['i18n_variables'] = array(

$update_free_access = FALSE;

ini_set('arg_separator.output',     '&amp;');
ini_set('magic_quotes_runtime',     0);
ini_set('magic_quotes_sybase',      0);
ini_set('session.cache_expire',     200000);
ini_set('session.cache_limiter',    'none');
ini_set('session.cookie_lifetime',  0);
ini_set('session.gc_maxlifetime',   200000);
ini_set('session.save_handler',     'user');
ini_set('session.use_cookies',      1);
ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid',    0);
ini_set('url_rewriter.tags',        '');

ini_set ("session.auto_start", 0);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.