I'm running a site with drupal 6.6 installed and working great. Doing the install on a shared host using cpanel.

OK here is what I'm trying to do, is run three sites with different content, themes, active blocks, etc but with a shared log-in.

http://iowaunder.com
http://archives.iowaunder.com
http://bands.iowaunder.com

Set up files at
sites/all/modules
sites/all/themes
sites/archives.iowaunder.com/files
sites/archives.iowaunder.com/modules
sites/archives.iowaunder.com/themes
sites/archives.iowaunder.com/tmp
sites/archives.iowaunder.com/settings.php
sites/bands.iowaunder.com/files
sites/bands.iowaunder.com/modules
sites/bands.iowaunder.com/themes
sites/bands.iowaunder.com/tmp
sites/bands.iowaunder.com/settings.php

Edited the setting.php and set the premission to 644. I've tried changing the

$db_url = 'mysql://username:password@localhost/databasename';
$db_prefix = '';

to point to both a new database the first time, a prefix of the main database the second time and then tried leaving as above. Also edited the base_url

$base_url = 'http://archives.iowaunder.com'; // NO trailing slash!

Then ran the symlink script(which should be included in the how-to):

symlink(".", "archives.iowaunder.com");
print "Well Done";

Now when I point my browser to archives.iowaunder.com/install.php I get the following:

"Drupal already installed
To start over, you must empty your existing database.
To install to a different database, edit the appropriate settings.php file in the sites folder.
To upgrade "

At first I thought that maybe I had forgotten to edit the settings.php but when I checked it it was correct. Then I edited as metioned above. Checked my MySQL phpMyAdmin and no new tables are there in either the new DB or the prefix. So at this point I completely deleted the setting.php and guess what the site still was operating.

So here's what is happening, the archives.iowaunder.com is not accessing the sites/archives.iowaunder.com/settings.php instead it is pointing to the default. Which if I wanted to have 3 sites that are complete mirrors of each other this would be great but that is not what I need.

I read through a thread last night covering this but it didn't really have an answer. Could this have something to do with the bootstrap.ini and if so what changes need to be made? Is this simply a bug in Drupal 6?

Comments

p6’s picture

Run the installer on a fresh, unedited copy of the settings.php (in the relevant dir in sites/*** ) ?

- Pavan Keshavamurthy
http://grahana.net/

- Pavan Keshavamurthy
http://grahana.net/

davoaxiom’s picture

Thanks, I thought I had already tried it with a copy of the default.

However after I choice english installation it get the following:
"Fatal error: Cannot redeclare system_requirements() (previously declared in /home/iowaunde/public_html/modules/system/system.install:12) in /home/iowaunde/public_html/sites/archives.iowaunder.com/modules/system/system.install on line 12"

any idea?

p6’s picture

Did you try a custom base URL? Could be the case
Or that something's wrong with your symlink.
seems like that function is being declared twice.

- Pavan Keshavamurthy
http://grahana.net/

- Pavan Keshavamurthy
http://grahana.net/

cog.rusty’s picture

Strange, public_html/sites/archives.iowaunder.com/modules/system/system.install shouldn't exist. If you have a second Drupal installation under public_html/sites/archives.iowaunder.com, delete it. It should contain only a settings.php file and any contributed modules and themes.

If you had a copy of Drupal's files there previously (or if it was a symlink), and you fixed it but the error message persists, check the paths of the modules in the 'system' table in the database.

davoaxiom’s picture

As I understood it you are to copy the main sites modules in the sties/site_name. This maybe the cause of the whole problem. I tried deleting system but got the same outcome.

At this point, I'm going to put down the laptop before I throw it across the room and just try this with a completely fresh install later tonight.

If this does turn out to be in fact a symlink problem, and I'm on a shared host with limited access to the apache. Is there a way to remove them on cpanel or will they "go away" when I delete all the files, drop the tables and start with a fresh install?

p6’s picture

As I understood it you are to copy the main sites modules in the sties/site_name. This maybe the cause of the whole problem. I tried deleting system but got the same outcome.

Your sites/site_name/modules should not contain core modules (like system in this case). Delete every thing in there and try again. Only contrib modules should be put in there.

- Pavan Keshavamurthy
http://grahana.net/

- Pavan Keshavamurthy
http://grahana.net/

cog.rusty’s picture

Removing the core files from sites/site_name and dropping the database tables should be enough for a fresh start.

davoaxiom’s picture

Thanks everyone for your help. I'm going to try to sit down after I'm done with the site and submit a detailed install instructions for multisites using cpanel on a shared server.

Now on to the shared uses and hopefully I'll be able to pull it off without posting here again but I'm always willing to accept any advice.

DaVo

Anonymous’s picture

Not to resurrect this issue however, I am having this EXACT problem.

My multi site is not running a new install script. It seems to be ignoring my settings.php file.

Any thoughts or what was the resolution on this?