hi,

I have installed drupal on my main site and I am also looking to have sites on my subdomains for which I want to use same drupal installation. How can I use it?

Comments

bmargulies’s picture

The install file explains this. You add a settings.php, and you arrange for the subdomain to fetch pages from the same drupal dir as the main domain.

Perhaps you were installed with fantastico so you didn't have to read the instructions the first time?

Pushkar Gaikwad’s picture

yes, I installed it with fantastico through my cPanel. Can you give me some more details as I am still lost..

bmargulies’s picture

You have a file named INSTALL.txt at the root of your drupal installation. If you don't have shell access, you can't do this, I think.

Here's what I did, anyway.

  • I create a new mysql database. This isn't required, but it's less complex. If your host limits your databases, you will have to read up on using table prefixes to avoid this.
  • I loaded 'database/database.mysql' into it.
  • I created a directory in sites named after my subdomain.
  • I copied settings.php into it, and then I edited it to reflect the new site info, particularly the database information.
  • I used a symbolic link so that the subdomain pointed to the drupal directory. This can also be done with redirects and the like, you might need to look and see what fantastico did for your main site and do likewise.
jas8t123’s picture

- I used fantastico to create a new installation and told it my subdomain name.
- Fantastico created a new file structure under public_html/subdomain
- The only thing I had to do was update the following:
$base_url = 'http://subdomain.domain.org'; // NO trailing slash!
to
$base_url = 'http://domain.org/subdomain'; // NO trailing slash!

Then, I redirected my subdomain to this directory and presto! It worked!

jsimonis’s picture

I haven't used Fantastico for this, so I didn't know it would do that.

I have a how to on doing multi-site installs here: http://drupal.org/node/125539

Would you mind posting that tidbit over there? I don't want to take credit for your find, and I know it would definitely help people.

--
Jenni S.
http://www.nu-look.net
Portland, OR metro area
Contact Me