Sub domain multi-site with Drupal 5.x

jsimonis - March 3, 2007 - 03:30

I've created the folder sub.example.com inside the sites folder.
The settings.php file has been edited to contain the correct user name, password, and database.
Database has been created.

This is where I get stuck, as I'm not sure what to do about having the actual subdomain.

If I create the subdomain in cpanel, it creates a folder called "sub."

If I go to sub.example.com, all I get is that folder.

If I delete the folder, I get directed to the main domain on the web hosting account.

So how do I go about setting up the sub-domain to work with Drupal? I can get a domain name set up to work under multi-site without problem. It's the sub-domain that I'm having trouble with.

I think this needs to be a key part of the instructions on setting up a multi-site, but I can't seem to find it.

hi jsimonis

simul - March 3, 2007 - 03:58

you are only one step away from setting up your drupal multisite.

you have to make you subdomain sub.example.com to point to the directory where you have installed drupal

If you understand the above, skip the rest .

let say you have installed drupal at /home/yourusername/public_html
That means that your www.example.com point to that directory.

I havent used cpanel and I dont know what it does when you create a subdomain sub, but most probably it creates a subdirectory at /home/yourusername/public_html/sub and makes sub.example.com point to that directory.
NO, sub.example.com should also point to /home/yourusername/public_html

There are different methods to make subdomain to point to your drupal installation directory, but it depends on your situation

If you cannot solve this problem ask again, possibly whith some info like:

do you have shell access ?
when you create subdomain, does cpanel asks you where do you want that subdomain to point?

hth
-simul

Here's what happens... I

jsimonis - March 3, 2007 - 04:29

Here's what happens...

I create the subdomain sub for example.com. So I now have sub.example.com.

Cpanel creates a folder named sub and automatically redirects to it.

Setting up redirection is done to a web address, not in the format of /home/username/public_html

If I tell it to redirect to http://www.example.com or even http://example.com, it does indeed redirect there. And that is what I get-- I get the web site that is at example.com

--
Jenni S.

Anyone done this through

jsimonis - March 4, 2007 - 08:03

Anyone done this through cpanel and been successful in getting subdomains to work with multi-sites? Or have any idea what I'm doing wrong?

Thanks.

--
Jenni S.

Anyone?

jsimonis - March 6, 2007 - 00:14

I'd like to find out the answer to this so I can add to the handbook how to do this.

A lot of people use web hosting with cpanel, and I'm sure they'll run into the same problem.

--
Jenni S.

 
 

Drupal is a registered trademark of Dries Buytaert.