Posted by superfedya on May 11, 2011 at 3:10pm
Hi,
I just migrated my 2 sites to delicated servers and I have a big problem with multisiting. When I empty the cache evrything is fine, but when I visit site 1 and 2, all the images and data (menu, not the nodes) are mixed!
Before I was with Bluehost and 2 domain (main domain and addon domain).
My Drupal was in /site directory and addon domain was fowarted to /site derectory directly.
Everything worked just fine.
Now I have a delicated server with virtual servers.
Virtual server 1:
SuexecUserGroup mysite1 mysite1
ServerName mysite1.com
ServerAdmin admin@mysite1.com
ServerAlias www.mysite1.com
DocumentRoot /var/www/mysite1
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/mysite1>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/mysite1.com.error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/mysite1.com.access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</DirectoryVirtual Server 2:
ServerName mysite2.com
ServerAdmin admin@mysite2.com
ServerAlias www.mysite2.com
DocumentRoot /var/www/mysite1/site
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory "/var/www/mysite1/site">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/mysite2.com.error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/mysite2.com.access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>Thanks for any help!!!

Comments
Just to be sure the basics
Just to be sure the basics have been performed before going any further: 1) Are you running any caching modules?, 2) Cache was cleared, right?, 3) Did you run update.php? How about cron.php?
Also, which version of Drupal is installed? Are the multisites sharing the same DB?
Thank you for answer!I
Thank you for answer!
I turned off all cache (even memcache and APC). I run update.php and cron.php too.
Those 2 sites are normaly have different designe:
http://www.madfanboy.com/site
http://www.madkino.com/
I'm 100% there is something with vhost configuration.
Drupal 6. Yes same DB with the same users and diferent nodes, term...
All of my multisites have
All of my multisites have their own databases. My thinking is that by having the DBs compartmentalized it reduces security risk. If your DB is breached by a hacker they get access to all of your sites.
In other words a shared DB is something I lack sufficient of as well as configuration of vhosts.
Just to be sure: you're using
Just to be sure: you're using same DB with prefix, right? In settings.php.
$db_prefix='site_a';--
Perttu Ehn
Yes I use prefix. All sites
Yes I use prefix. All sites works fine on shared hosting with addon domain. The problem is only on delicated server with virtual host.
Is there any kind of
Is there any kind of webhosting management software running on your server, which could interfere?
And do you have default .htaccess -files?
--
Perttu Ehn
You could also trace problem
You could also trace problem through source code (html) of your broken site. Is the url of "wrong image" correct? Or does it point to the wrong domain?
--
Perttu Ehn
Only Webmin. I took .htaccess
Only Webmin. I took .htaccess from Bluehost.
Did you check .htaccess in
Did you check .htaccess in case of odd redirects?
--
Perttu Ehn
And do you have reason to NOT
And do you have reason to NOT use Drupal default .htaccess?
--
Perttu Ehn
RPSU makes a good point. Are
RPSU makes a good point. Are you using any other files transferred over from Bluehost?
BTW Did you transfer the database over from Bluehost? If so, for testing purposes it might be a good idea to start with a fresh DB. Use the DEV module to create content for each of the sites, then test to see of the problem persist. When all else fails go back to basics with a clean install--meaning no short cuts like copied files.
It was Cacherouter (Memcache)
It was Cacherouter (Memcache) error. I just didn't change the prefix. Now it's OK.
Thanks
Hi superfedya, I am facing
Hi superfedya,
I am facing the same issue where i have the development site and production site on the server, many times the Production site menu items come on the development sites and some times development menu's come on the Production site, i have many caching modules installed like boost, authcache and memcache, could you please help me out with this.
Thanks in Advance.
Krishna