I want to create a subdomain in my existing site ,how to create it.please send me the steps.

i have my own website in drupal so i need to create a new website in same domain and want to use same database for new website
www.example.com -i need to create subdomain website
www.a.example.com.

Please help

Comments

marquardt’s picture

Check out the multi-site options Drupal provides.

buddhika’s picture

If you are using a shared host this could be hard because of not having access to Apache virtual host files usually. But following link may help.

http://drupal.org/node/43816

Gist of the matter is,

1) Create another folder (example_com) in Drupal/sites folder.
2) Copy the settings.php to the folder.
3) Copy themes and modules that you need also to the new folder (to themes an modules folders respectively)
4) Change the db path in settings.php (as in the articles in above link).
5) Change the apache Virtual host file to point to the location according to the subdomain.

nadinesouthern’s picture

Please help. I am a beginner and have set up my main domain successfully (using Drupal6) and it is all working. I now want to add a subdomain for a completely different website using Drupal5 and a different data base to the I am using for my main domain. I have spent the last 3 hours reading the documentation and posts and can't seem to find anything on where to put the appropriate files (using FTP and c-Panel).

Currently in WinSCP I have:
etc
access-logs
etc
mail
public_ftp
Public_html
tmp
www

I dragged the contents of drupal6 into my www folder so it looks like this:
www/cgi-bin
www/includes
www/misc
www/modules
www/profiles
www/scripts
www/sites
www/themes

My question is: where do I put the contents of my Drupal5 contents?

I'm sorry if this question has been addressed before. I really would appreciate any help.