[Clug-tech] Drupal, Site5 and multisites
John Jardine
john_e_jardine at spamcop.net
Sun Sep 13 08:43:38 PDT 2009
Hi,
I had grown frustrated with my web host (Canaca) and wanted to move one
of my sites over to the same Site5 account that was hosting COSSFEST
Foundation.
When I setup the COSSFEST Foundation site I picked Site5 as the
provider. I did this in part because they offered linux hosting,
supported Drupal, had the right versions of PHP, MySQL etc.
Drupal organizes sites as separate directories:
<drupal install dir>/sites/default
<drupal install dir>/sites/www.cossfest-foundation.com
<drupal install dir>/sites/my-new-site.com
The original install was Drupal 6.9, later upgraded to 6.13 If you want
to run a single site in Drupal there isn't much setup:
Use your web host to create a database, add a user, assign a password.
Use your web host to create/associate a DNS entry
Execute tar xvf drupal-6.13.tar.gz into public_html or wherever the
webhost has it.
set the database name, userID & Password in the default settings.php and
then run open <yoursite>/install.php.
Doing this is actually pretty easy. Drupal is built to support multiple
sites. If you only have one site you don't need to configure the site
specifically, it will be treated as the default site. If you have
multiple sites then each site should be configured separately - ie
without a default site.
What I did was was copy the files from sites/default to
sites/my-new-site.com and then edit the database name and base url in
sites/my-new-site.com/settings.php.
$db_url = 'mysql://<dbuser>:<dbpassword>/database_name';
$base_url = 'http://my-new-site.com';
now chmod a+w sites/my-new-site.com/settings.php
Open http://my-new-site.com/install.php in your browser... configure
normally
Cheers,
J.J.
On Sun, 2009-09-13 at 01:08 -0600, Shawn wrote:
> Can you tell us what you did? I know some of the theory behind
> multisites, but haven't had to do it yet. You're in new territory for
> me.. :)
>
> Shawn
>
> John Jardine wrote:
> > Never mind - I was just being stupid. I take it to a whole new level!
> >
> > On Sun, 2009-09-13 at 03:46 +0000, John Jardine wrote:
> >> Hi,
> >>
> >> I'm trying to add a new site to an existing drupal installation (6.13).
> >>
> >> I'm not having much look - I keep getting 'drupal already installed'.
> >> I've googled around a bit but didn't find a walk-through to do this.
> >>
> >> Anyone messed with this?
> >>
> >> Thanks,
> >> J.J.
> >>
> >>
> >> _______________________________________________
> >> clug-tech mailing list
> >> clug-tech at clug.ca
> >> http://clug.ca/mailman/listinfo/clug-tech_clug.ca
> >
> >
> > _______________________________________________
> > clug-tech mailing list
> > clug-tech at clug.ca
> > http://clug.ca/mailman/listinfo/clug-tech_clug.ca
>
> _______________________________________________
> clug-tech mailing list
> clug-tech at clug.ca
> http://clug.ca/mailman/listinfo/clug-tech_clug.ca
More information about the clug-tech
mailing list