Multisite Drupal installation problems with WAMP

Hi, I have to continue in Windows the development of 2 Drupal websites that were developped in Linux.

Under Linux, both sites run locally on 2 virtual hosts. The installation is distributed as follows:

In \omhm-drupal\public_html\sites
\omhm-drupal\public_html\sites\all
\omhm-drupal\public_html\sites\default
\omhm-drupal\public_html\sites\siteDemo
\omhm-drupal\public_html\sites\mySite1

The mySite1 folder is in fact a shortcut to the siteDemo folder. If the address is http://mySite1, that website is loaded. If it's the other address, then the other website is loaded. All of this works fine.

In Windows, I've created both addresses in the hosts file and both addresses in the httpd-vhosts.conf WAMP file. My databases have been created.

The installation is distributed as follows in c:\wamp\www:

In \omhm-drupal\public_html\sites
\omhm-drupal\public_html\sites\all
\omhm-drupal\public_html\sites\default
\omhm-drupal\public_html\sites\siteDemo
\omhm-drupal\public_html\sites\mySite1

Here too, the mySite1 folder is a shortcut on the siteDemo but it seems it's not recognized because if I put in the address http://mySite1, it's the the 2nd website that's shown. If I type the 2nd address, the 2nd website is loaded.

I'm using Drupal 6.x, Apache 2.2.11, PHP5 and Windows XP.

Does anyone have an idea what the problem could be ? Thanks !
a_godinAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

junipllcCommented:
Are you using multisites or multiple sites? There is a difference -- multisites uses the same Drupal codebase (core) for multiple sites...but that directory structure is usually:

/drupal/sites/all
/drupal/sites/default
/drupal/sites/mySite1
/drupal/sites/siteDemo

You then point Apache to one place -- /drupal -- regardless of the site and Drupal takes care of which site to display automatically.

If that's all configured correctly, then my first inclination would be that it looks like the symbolic link you're using (actually, in Windows, the shortcut) isn't being recognized. SInce Windows doesn't support actual symbolic links it's possible that Apache isn't recognizing a shortcut as a link, or isn't configured to allow them.

Try that first, and if it's not the issue post back and I'll come up with a few more ideas.

Mike
0
a_godinAuthor Commented:
Thanks for answering ... yes, it's a multisite installation.  I was told elsewhere too that my problem is that the shortcut is not being recognized as a symbolic link.  I read about the Junction program in Windows that lets you create symbolic links so I tried creating \omhm-drupal\public_html\sites\mySite1 with it but it still didn't work.  Can you think of something else ?  Thank you.
0
letharionCommented:
What happens if you simply remove the symlink and move the real site into it's place?
0
a_godinAuthor Commented:
Both websites are accesible but most pictures won't display ... and it's gonna complicate matters a lot for me if there's a difference between the production environment and my development environment.
0
letharionCommented:
Well, if you want the dev and production environment to be completely similar, the easiest would be to stick to one OS :)
I guess however, that's not a choice you have.

I suggest you check where the pictures are expected to be found, and where they in reality are. Most likely the paths has become invalid.

I think some sed magic can work that out for you, and if it does, you can perform the same sed-command on both environment, making them equal and removing the symlink from the picture entierly.
So look into the paths, and I will help you with the sed-ing if need be. If so, it would be helpful to be able to actually look at the DB itself. Is there sensitive information in the database, or can you make it available to me?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Drupal

From novice to tech pro — start learning today.