Hello everyone:

I am completely new to Drupal, so please bear with me.

I created a Drupal 6.24 test site (using XAMPP 1.8) on my computer (windows 7 ultra) and copied a live Drupal 6.24 (including the database) to this test site. The structure is a multi site format.

Sites folder in drupal 6.24 (htdocs/drupal-6.24) contains the following folders: all, greetingcards, default

The windows host file contains the following: 127.0.0.1 greetingcards

The file httpd-vhosts.conf contains the following:


##ServerAdmin postmaster@dummy-host2.localhost
DocumentRoot "C:/xampp/htdocs/drupal-6.24"
ServerName greetingcards
##ServerAlias www.dummy-host2.localhost
##ErrorLog "logs/dummy-host2.localhost-error.log"
##CustomLog "logs/dummy-host2.localhost-access.log" combined

The problem occurs when I enter the path to my greetingcards site: http://greetingcards

Instead of being able to view the copy of the live site, I end up viewing the admin page. The page containing the header: "Welcome to your new Drupal website!".

I've done this numerous times. Always the same result.

I would greatly appreciate someone telling me what I am doing wrong.

Isaac

Comments

dman’s picture

If you can see Drupal at all there, it means you've done all the tricky bits right.
Based on the info you've supplied, all looks like it should work.
The only bit you didn't specify was checking the settings.php inside the greetingcards folder for the right database array. At this point, I'd double-check that. The 'Welcome to your new.." means it's pointing at an empty, but initialized DB. Otherwise you'd get an install wizard.

Are you sure the database you downloaded was even the right one?

isaac58’s picture

Hi dman:

Thank you so much for replying.

The settings.php file contains the following:

$db_url = 'mysqli://root:password@localhost/greetingcards';
$db_prefix = 'drupal_';

$update_free_access = FALSE;

$base_url = 'http://greetingcards'; // NO trailing slash!

ini_set('arg_separator.output', '&');
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', 2000000);
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', '');

If you have any ideas, please let me know.

Isaac

steeph’s picture

Additional information: Each site has a settings.php (default and greetingcards). If you are sure the database used by greetingcards is correct, then check the one used by the default site. If this is the one with a fresh Drupal site, something is wrong with the host configuration. But it looks correct. If you only need the one site on your computer, you could also just delete or move the default directory, and rename greetingcards into default. Then it doesn't matter which domain name you are using to access the site.

isaac58’s picture

Hi steeph:

Thank you so much for replying.

The settings.php file contains the following:

$db_url = 'mysqli://root:password@localhost/greetingcards';
$db_prefix = 'drupal_';

$update_free_access = FALSE;

$base_url = 'http://greetingcards'; // NO trailing slash!

ini_set('arg_separator.output', '&');
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', 2000000);
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', '');

If you have any ideas, please let me know.

Isaac