I'm lost with multisite

Events happening in the community are now at Drupal community events on www.drupal.org.
Anonymous's picture
Posted by Anonymous on October 27, 2009 at 8:53am

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

Comments

the simple way

Posted by SumyTheSlayer (not verified) on October 27, 2009 at 9:51am
SumyTheSlayer's picture

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

Posted by giorez (not verified) on October 28, 2009 at 2:36pm
giorez's picture

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

Posted by SumyTheSlayer (not verified) on October 28, 2009 at 7:39pm
SumyTheSlayer's picture

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

edit: you have plesk installed on your own server?

need help

Posted by giorez (not verified) on October 28, 2009 at 9:33pm
giorez's picture

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.

...

Posted by SumyTheSlayer (not verified) on October 29, 2009 at 8:25am
SumyTheSlayer's picture

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

Posted by giorez (not verified) on November 5, 2009 at 11:28pm
giorez's picture

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?

...

Posted by SumyTheSlayer (not verified) on November 6, 2009 at 8:31am
SumyTheSlayer's picture

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

Posted by giorez (not verified) on November 7, 2009 at 11:04am
giorez's picture

(削除) 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.

...

Posted by SumyTheSlayer (not verified) on November 7, 2009 at 12:20pm
SumyTheSlayer's picture

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

Posted by giorez (not verified) on November 7, 2009 at 4:30pm
giorez's picture

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

Posted by davidwheelerphd on October 28, 2009 at 3:16pm

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.

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /