Hi everyone
Ok, so I've been trying to create multisite for a while, and still can't figure out exactly what need to be done. Been reading, viewing quite a lot of sites, and most tells different ways to do it which makes it more confusing.
I began using Drupal 6 Performance tips book, that has an example using localhost. I however need it on my webhost.
This is what I've been doing so far:
1. In my public_html directory I've created a directory names drupal where I've put the core files.
2. I've created a directory under sites (mysite.com) and added the settings.php file.
3. I've created a database both for the drupal core and one for mysite.com (also have databases setup for the rest of the sites).
4. I've installed the drupal core.
so far, everything's ok. But now it's where I'm getting confused. What to do next?
What I want is to get to mysite.com when surfing to www.mysite.com. I want to go to devel_mysite.com when surfing to devel.mysite.com and so on..
My biggest problem is that I don't know how and where to point everything. Some say for example to use addon domain, but in my case with mysite.com I get the error message that I can't park my main domain.. (I have access to cpanel btw). And i don't quite get what syslinks is all about. It would be great if anyone could answer these questions, and preferably put together a step by step description (or give a link with a good one).
/freddiz
Comments
"I've created a database both
"I've created a database both for the drupal core and one for mysite.com" You do not need a database for Drupal's core files. You create one database for each site, unless there is a good reason for you to use share one database among sites. The latter may increase the complexity for you. Each site must point to your Drupal directory -- that's the aspect that confuses many people. Think of symlinks as the shortcuts you find in the Windows environment. This might help you: http://drupal.org/node/125539
good start
looks like the last step for you is to make www.example.com point to your drupal install. you can get started developing right away by editing your hosts file[1]. however, this will not mean that the rest of the world can see your site.
you will also need to work with your hosting provider to get all the domains you want to build pointing to your drupal install. then the rest of the world can see the super-awesome site(s) you are building. there is quite a bit of documentation, and i found one that seems to deal with your circumstances[2].
[1] Editing Your Host File
http://www.fpweb.net/support/managed-hosting/hostfile-editing-support.asp
[2]5 minute multisite using Cpanel
http://drupal.org/node/348619
good luck
Some of the steps required
Some of the steps required will vary depending on your host. I have two hosts that use cPanel and the steps on each host vary slightly.
First, let's be sure we understand that multisite = multiple sites using the same codebase. That said, you have your Drupal files in /public_html and for the sake of this post, I am assuming that /public_html is your Drupal root.
Now for each site, create a folder and its respective settings.php file in your /public_html/sites so that it looks like this:
sites/example.com/settings.php
sites/devel.example.com/settings.php
I'm assuming that you can't point multiple (sub)domains to the same folder on your host, so thats where you need symlinks. For each site, create a symlink to the /public_html director. When you create(d) you (sub)domain(s), you have to point it to its symlink. Think of symlinks as virtual folders. As far as systems and paths are concerned, they work like normal directories when in reality they point to a directory elsewhere.
I don't recall a way to create these in cPanel since I try to use it as little as possible, but if you have shell access, you can just use
ln -s /public_html /othersitenamehere. In your case, you would need a symlink for devel.example.com.Make sure when you're looking at guides, that you're looking at those for your version of Drupal. I'm just assuming here that you're using D6 (http://drupal.org/getting-started/6/install/multi-site).