I'm lost with multisite

sorry for stressing with newbie questions. I've read several posts about multisite, but I can't find my same situation:

I have VPS centos, Plesk 9.2.2 and I'd probably be able to edit "etc/httpd/conf/httpd.conf" file.
I don't have root access, nor idea about symlinks.
I can create many databases.

I like to have:
- unique code base and basics-modules in var/www/vhosts/site1.com/subdomains/drupal/httpdocs
- spedific-modules and themes in domains site2.com, site2.it, etc
- single database for each domains and main subdomain

I don't know how and where to set files, folders, alias (plesk alias?)

One more question: How/Where do I manage updates about basics-modules and spedific-modules?

Any help is appreciated, many thanks

Groups:
Login to post comments

the simple way

SumyTheSlayer - Tue, 2009-10-27 09:51

make a copies of /drupal_root/sites/default and rename them by your need (name them by your domains and subdomains if needed)
in your case /drupal_root would be /var/www/vhosts/site1.com/subdomains/drupal/httpdocs
and them make modifications in your apache installation to point each site to the same /var/www/vhosts/site1.com/subdomains/drupal/httpdocs" folder

i think that you should take a look at this tutorial (look starting at 14:20... look at http.conf, ignore the RAM and other things you are not interested) you should copy the default virtual host settings for each of your sites and modify it by your need.

please note that I'm not talking from experience, i had my own apache server a while ago, but not with drupal multisite, but it should work for you, and if i'm wrong, please, someone correct me.

i currently run a miltisite install from a host, ant afterm making the folders for my sites, i made "aliases" in my host control pannel so that the DNS poits everysite to my drupal root.

hope it helps you seek more info... and good luck

edit: have you seen this? take a lok at step 2... and note that not everything is exactly by the book...


thanks a lot for your support

giorez - Wed, 2009-10-28 14:36

I did watch the video great video, but I can't find how to use plesk to point each site to same base folder


have you looked here??? look

SumyTheSlayer - Wed, 2009-10-28 19:39

have you looked here???
look at: "DNS" or "Domain Alias"

edit: you have plesk installed on your own server?


need help

giorez - Wed, 2009-10-28 21:33

thanks for this resource. Unfortunatelly I've tryied to set everything on my own, but I'm very frustrated because I'm newbie. Can you do it for me? Or at least send me a proposal about costs? I can pay some money for this support. And yes I've Plesk 9.2.2.


...

SumyTheSlayer - Thu, 2009-10-29 08:25

have you managed to setup a single site drupal instalation? if so, have you managed to install it for multiple domains on the same host?

you don't need access to "httpd.conf" you only need to point all the domains and subdomains (if any) to the same IP... or in case of subdomains, you can create a subdomain from the admin pannel (look at those tutorials) and then login with ssh, delete the old subdomain folder and replace it with a symbolic link using
ln -s /path/to/subdomain/folder /path/to/domain/folder

edit: just saw your hosting plan, for a moment I thought you had your own server setup.

edit 2: look at Create domain pointer and that should do the job for you, using only the admin panel.


sorry for delaying (I had a

giorez - Thu, 2009-11-05 23:28

sorry for delaying (I had a problem with a site migration on a different server).
Regarding yuor last reply I'm still stuck.

I set a basic drupal installation on http://drupal.rezzoli.com (vhosts/rezzoli.com/subdomains/drupal/httpdocs)
I set settings.php of my second site http://scuolasnowboardmontebianco.com in vhosts/rezzoli.com/subdomains/drupal/httpdocs/sites/scuolasnowboardmontebianco.com/settings.php
I set a Domain Pointer throught plesk of scuolasnowboardmontebianco.com to http://scuolasnowboardmontebianco.com.rezzoli.com/ (result: not found)
I also tryied to point to http://scuolasnowboardmontebianco.rezzoli.com/ (result: not found)
I also tryied to point to http://drupal.rezzoli.com/ (result: resolve to http://drupal.rezzoli.com)
I don't know how to make a symbolic link.

any suggestion?


...

SumyTheSlayer - Fri, 2009-11-06 08:31

from what i see you probably have to make a symbolic link from /var/www/vhosts/scuolasnowboardmontebianco.com/httpdocs to /var/www/vhosts/rezzoli.com/subdomains/drupal/httpdocs here are a few guidelines:

  1. use ssh to connect to your server (you probably have access, use putty for that... and look at your web host for FAQ
  2. go to vhosts/scuolasnowboardmontebianco.com directory using: cd /var/www/vhosts/scuolasnowboardmontebianco.com
  3. rename "httpdocs" to "httpdocs_backup" using: mv httpdocs httpdocs_backup (can be done also in FTP)
  4. make a new symbolic link: ln -s ../rezzoli.com/subdomains/drupal/httpdocs httpdocs
  5. and your are done!!! I think...!?!

for more info about symbolic links take a look here, or here. and ../rezzoli.com/subdomains/drupal/httpdocs means you are "going up" one folder to /var/www/vhosts and then you point  to rezzoli.com/subdomains/drupal/httpdocs

one more question, have you actually used your "scuolasnowboardmontebianco.com" on that particular web-host? is the domain registered to point to your particular host? if so, those are the steps that should work for you.


1) unfortunately I can't use

giorez - Sat, 2009-11-07 11:04

unfortunately I can't use ssh to connect to my vps (hosting provider doesn't allow it), any chance to create it throught ftp?

what you mean for?
one more question, have you actually used your "scuolasnowboardmontebianco.com" on that particular web-host? is the domain registered to point to your particular host? if so, those are the steps that should work for you.

scuolasnowboardmontebianco.com has a regular pointer (no frame) to drupal.rezzoli.com. The pointer is an alias created throught plesk.

UPDATE: i did the trick to create a symlink throught cron. (ln -s ~/var/www/vhosts/rezzoli.com/subdomains/drupal/httpdocs/ ~/var/www/vhosts/scuolasnowboardmontebianco.com/)
The scuolasnowboardmontebianco.com is actually a regular web host (no pointer, nor frame/regular). If a create a pointer, plesk doesn't create the httpdocs to include the symlink.
I put /var/www/vhosts/rezzoli.com/subdomains/drupal/httpdocs/sites/scuolasnowboardmontebianco.com/settings.php (see attachment)
Now scuolasnowboardmontebianco.com resolves to "Forbidden. You don't have permission to access / on this server"

thanks a lot for keep helping me so far.

AttachmentSize
settings.php_.txt 10.22 KB

...

SumyTheSlayer - Sat, 2009-11-07 12:20

you see "Forbidden. You don't have permission to access / on this server" when you have an empty folder... i think that now www.scuolasnowboardmontebianco.com points to the folder ~/var/www/vhosts/rezzoli.com/subdomains/drupal/httpdocs/httpdocs instead of just ~/var/www/vhosts/rezzoli.com/subdomains/drupal/httpdocs

you can verify this by making a dummy "index.html" file into that folder...

i think that you didn't make the right symlink. try something like
ln -s ~/var/www/vhosts/rezzoli.com/subdomains/drupal ~/var/www/vhosts/scuolasnowboardmontebianco.com - please notice that the httpdocs part from the destination is missing.


still no success I created

giorez - Sat, 2009-11-07 16:30

still no success

I created symlink
ln -s ~/var/www/vhosts/rezzoli.com/subdomains/drupal ~/var/www/vhosts/scuolasnowboardmontebianco.com

now I have the alias
/var/www/vhosts/scuolasnowboardmontebianco.com/drupal

pointing to
/var/www/vhosts/rezzoli.com/subdomains/drupal

http://scuolasnowboardmontebianco.com/
resolves to "Not Found. The requested URL / was not found on this server."

attached here are the screenshots of the two sites


Pointing to base folder

DavidWheelerPhD's picture
DavidWheelerPhD - Wed, 2009-10-28 15:16

Some shared hosting services don't allow this at basic service level. Ask them.

If anyone knows how to do this with .htaccess file I would love to have the code.