Multi-site weird behavior

Events happening in the community are now at Drupal community events on www.drupal.org.
jfmoore's picture

Here's the way I set up the sites:

  1. Installed Drupal 6.12 into mydomain.com/multisite

  2. Created separate database for subsite1

  3. Created directory multisite/sites/www.mydomain.com.subsite1

  4. Copied settings.php to new directory, entered new database info, and uncommented the base url line and changed it to $base_url = 'http://www.mydomain.com/subsite1';

  5. In SSH client, I navigated to home/myaccount/public_html and created symlink as follows:
    ln -s multisite subsite1

  6. In browser, went to mydomain.com/subsite1/install.php and installed without problem
    (don't remember if I added www. or not)

I had a little problem with FCKeditor, but I worked it out. Then, I noticed this other problem:

I can go to the main site with mydomain.com/multisite, and it works okay. But when I use www.mydomain.com/multisite, I get a white page with a lot of warnings like

Warning: Table 'mywebsite_maindb.access' doesn't exist query: SELECT 1 FROM access WHERE type = 'host' AND LOWER('72.148.198.53') LIKE LOWER(mask) AND status = 0 LIMIT 0, 1 in /home/mywebsite/public_html/multisite/includes/database.mysqli.inc on line 128

Warning: Table 'mywebsite_maindb.users' doesn't exist query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = '18149f6c56914d2d69897e4b45c17ea6' in /home/mywebsite/public_html/multisite/includes/database.mysqli.inc on line 128

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mywebsite/public_html/multisite/includes/database.mysqli.inc:128) in /home/mywebsite/public_html/multisite/includes/bootstrap.inc on line 1031

Warning: Table 'mywebsite_maindb.cache' doesn't exist query: SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'variables' in /home/mywebsite/public_html/multisite/includes/database.mysqli.inc on line 128

Also, I can go the the subsite via www.mydomain.com/subsite1, and everything looks okay, but when I use just mydomain.com/subsite1, it goes to the main site at /multisite.

My host account is a cPanel/WHM (fully managed) VPS account with WiredTree. I'm sure the problem is in the re-directing, but I don't know how to fix it. If someone could point me in the right direction. I would be appreciative.

Comments

Hey, Did you use the same

asifnoor's picture

Hey,

Did you use the same database or different databases?

When i install on different databases, i am facing no issues. But with same databasee (shared users, sessions, roles and permissions), i am facing syntax error in menu module. After putting a patch given in forums, the installation is just being stopped.

Any ideas?

I am using drupal 6.10

Asif
Azri Solutions (http://www.azrisolutions.com/)

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: