Posted by emilianodelau on January 10, 2011 at 9:44pm
I am trying to setup multisite on Bluehost. I followed the instructions to the letter but it is not working. The Bluehost techies cannot help me. Has anyone out there done this on Bluehost and do you have a procedure?

Comments
Multisite on Bluehost Procedure
I have a multisite setup on Bluehost. I have the primary domain and 6 subdomains, and it works perfectly.
First, set up the primary domain with the Drupal code and be sure to go through the install, and then take these steps to add a new subdomain.
(1) create a new subdomain and delete its folder from the File Manager
(2) create a database
(3) create the folder "subdomain.topdomain.com" in the sites folder of the primary domain
(4) add a settings file to this folder (from 3) with the database connection (and of course upload the folder)
(5) do the symlink:
(6) bring up phpMyAdmin and export the database from your primary domain into an sql file
(7) in phpMyAdmin import the sql file from (6) into the subdomain's database
(8) open your subdomain in a browser window and it should look exactly like the primary domain and be ready for you to customize it
Feel free to contact me directly if you have questions.
Susan (joyseeker)
Multisite on Bluehost Procedure
The first time I ran the following code I got a blank screen but I do not see it say Done.
<?phpsymlink( '/home2/isantema/public_html/isantemagazine.com', '/home2/isantema/public_html/uschefskiclub.isantemagazine.com' );
?>
Now when I run this code I get the following message:
Warning: symlink() [function.symlink]: File exists in /home2/isantema/public_html/multisite_test.php on line 2
When I try to navigate to my subdomain (uschefskiclub.isantemagazine.com) I get the following message:
Forbidden
You don't have permission to access / on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
What is happening?
Developing Online Businesses and Knowledge Applications.
Thanks Susan
Worked great, thanks for the walk through.
Enabled SSH by calling Bluehost "verification" as per personal preference to make the symlink that way.
hello:the same subject
Here i ve followed the same tutorial many times ;
I m on Bluehost with a pro account .
I ve got my ssh and work with git and drush .
Still it give me the permission problems even if i ve made settings linked to db and root username and file writable .
Database imported .
the symlink:page white.
the link subdomain.domain.com url gives:
"
Forbidden
You don't have permission to access / on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at kelaahotel.wordtosay.com Port 80
"
I do not know what is the matter if anyone has got an issue help ! Thanks a lot
mhamed
Multisite on Bluehost Procedure
I discovered that my subdomain was pointing inside the sites folder. I removed that subdomain and redid it so that now it points to the public_html folder. I re-ran the symlink code and now I see a link in public_html. This was promising. Now, when I run uschefskiclub.isantemagazine.com I get the following message:
===================
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@uschefskiclub.isantemagazine.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Developing Online Businesses and Knowledge Applications.
Feel your pain for setting up
Feel your pain for setting up multisites on Bluehost, but once done it works great--except for a few little tweaks to get google analytics and boost modules to work.
1) It works best if you make your top-domain a Drupal site.
2) In the site folder create folders with the domain name: example.com, sample.com, mysite.com, etc.
3) Inside each of those folder create a 'files' folder.
4) The quickest way to set up to set up each site is to first make sure the domain is listed as an 'addon'.
5) Use Simple Script to set up the Druple site and log in.
6) Use Simple Script to remove the Drupal site you just created, but be sure to leave the files. [There are two options so double check you've got the correct one.]
7) Move the .htaccess and settings.php from the site just created to the sites folder (example.com).
8) Return to the Domain Name panel and change the site's setting from 'addon' to 'park'.
9) If you're into SEO you'll probably set the domain to always resolve with or without the www. If that's the case you'll need to copy this code into the .htaccess file that is in the root directory for the Drupal core install. The code is for www, so if you need it otherwise do a search and you'll find the section. My apologizes for not providing the name of the individual who posted it elsewhere on this site.
non empty HTTP_HOST in the request <<== be sure to comment out these lines===========
does not start with 'www'
saves the value of HTTP_HOST in %1
redirects using the saved URI (in RewriteRule) and saved hostname (in the last RewriteCond)
that's it !
10) If you use the Google Analytics module you'll need to tweak the settings file. Search and you will find the info on this site. The same goes for the Boost module.
this is good for new domains
Ok
I gave a try for this on bluehost for a new domain that i ve just bought
Followed the steps
it is a real way to share the same base code the same modules themes with many site on the same hosting
So it is easy for a webmaster to update
thanks
but i do not think it can be applied to the subsites such as : http://sub.mainsite.com which is not a domain by itself but just a title under a domain
thanks
mhamed
No reason why not...
I don't think there is any reason why you wouldn't be able to host a subdomain, as technically www.mainsite.com is a "subdomain" as well. Drupal and Bluehost shouldn't care too much whether or not your site is a "bare domain" i.e., mainsite.com as opposed to a subdomain.
The same problem ...
Hi :
I had the same problem. I sent a message to the Hosting y they answered me that they do that procedure.
You can't you the presets.
I suggest you change hosting.
Manuel.
the same problem
hello all:
i m really in muddled situation :
after many researches and following many tutorials to execute my beloved project multisite on drupal bluehost.
1-I ve got a pro hosting with ip and ssh enabled.
2-work with git and drush easily.
3-I ve created my subdomain in Cpanel :hotel.wordtosay.com.
4-Created the subdirectory:htmlpublic/sites/hotel.wordtosay.com
5-added the settings.php and default.settings.php ;in: htmlpublic/sites/hotel.wordtosay.com
6-created database username_hotel granted for root all privileges
7-configured settings.php according to database.
8-exported main database from phpmyadmin
9-chaged the name and the prefix of the database
10- imported it back to the hotel database
11-deleted the subfolder htmlpublic/hotel automatically created
12 opened shell and hence the code to create the symlink: ln -s public_html/sites/hotel.wordtosay.com public_html/hotel
13-control:symlink :created
14-ran the site:as .wordtosay.com
15-Oops the error:
Forbidden
You don't have permission to access /install.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at hotel.wordtosay.com Port 80
16-changed the settings.php permissions to even :777
the same problem
Has anyone undergone the same problem thanks a lot for all your helps
mhamed
Try changing the folder's
Try changing the folder's permission too.
For some reason it seems to go smoother if it is done through the CP's file manager than through an FTP program.
about Bluehost troubles
Hi:
I'm sending you the message Bluehost send me Nov 11th last year :
Good day,
Our servers will NOT allow Options +FollowSymLinks running anywhere on the server.
If you try to use it you will get a error and the server will comment it out (no way around this on our servers).
Thank you,
Jon
BlueHost.com
888.401.4678
I'd like to show a picture with the message but I can't attach a one.
That means you can't use presets.
Perhaps currently there are changes but ask to support.
I hope this help you.
FollowSymLinks
Assuming that the public_html directory has all of the Drupal files, and that the CPanel installation of a subdomain puts a separate folder within to map.
You don't want to link "public_html/hotel" to public_html/sites/hotel.wordtosay.com, but rather to "public_html" itself. You don't want the website to be serving the drupal sites/ folder as it's docroot, but rather the full Drupal installation.
It appears from reading the posts in the Bluehost help center that what you really want to set up is not a "subdomain", but a "parked domain". To the outside world, the two sites serve up from the same index.php site but it is Drupal's multisite capabilities that would handle the rest of the process to make sure two separate sites were served.
hello:the same subject
hello again
thanks for your supports
1-first i changed the folder permission too but always the same thing
2-For the the first tutorial that i followed was the http://groups.drupal.org/node/118109#comment-381984 by 'joyseeker'
3-For bluehost I think they allowed subdomain to be executed as stated by their support and the chat with one of their personal
4-Perhaps it has to do with some ajustement of DNS but have never experienced
I ll try again if not i ll go to drupal domain modules and see
thanks
mhamed
You don't need to do any permissions
If you use a "parked" domain, and point it to your main Drupal installation, you can run multisites without having to edit any permissions, symlinks, or do anything out of the ordinary.
Create a parked domain, domains2.mydomain.com and park it to whatever your primary Drupal domain site is.
In the drupal "sites/" directory, create a directory named "domains2.mydomain.com" and copy "sites/default/default.settings.php" into that directory as "settings.php". Visit http://domains2.mydomain.com/install.php and it should take you through a separate installation process. Be sure to either use a separate database or at least a new table prefix.
Ok i ll try
Ok i ll try this thanks
mhamed
hello:the same subject
I ve tryed the parked domain but It means a different thing that I m intending to do
Parked domain :A Parked Domain (or pointed domain) is a domain name that points to the same directory as your Primary domain. This means that the website of the parked domain will be the same as wordtosay.com which is your Primary Domain.
But for my case i ve got just the mothersite as a domain not an other one .
I want to create subsites that can use the same directories of :
1-modules
2- libraries
3-use the same main drupal installation
but
4-different databases and content
I think it is not the problem of config because i followed the drupal tutorials many times
Perhaps the problem of bluehost
mhamed
It's disconcerting, but...
A parked domain is still exactly what you want. I understand that Bluehost's documentation says that it will be the same as wordtosay.com, but this is where Drupal takes over and makes it different.
Typically when you have two domains pointing at the same set of files (i.e., wordpress, static HTML, etc.), the host will serve the same site for both domains. But when you point two domains at the same set of files (Drupal), the magic of Drupal can serve two different sites. Bluehost's documentation is right, but doesn't take into account the magic of Drupal multisites.
In your home directory if you have two domains pointing at public_html (or one domain pointing there and one parked) and you have the following structure (assuming public_html is where Drupal's files were unpacked):
public_html/sites/default/settings.php
public_html/sites/hotel.wordtosay.com/settings.php
public_html/sites/all/themes
public_html/sites/all/modules
Then your default domain will connect to the database defined in sites/default/settings.php and the second site (hotel.wordtosay.com) will use the database defined in sites/hotel.wordtosay.com/settings.php
But both sites will be able to use the modules and themes in sites/all
eporama is dead on. Park you
eporama is dead on. Park you domain name, create a folder in the site folder--site/domainname.com--and drop the settings.php for the domain in the folder and you are pretty much done. I've done with several hosting companies--including Bluehost--and there has never been an issue.
Perhaps this is the answer...
I just noticed this thread. From my initial instructions, the second part of the #1 is crucial -- delete its folder from the File Manager -- and this may be the problem here. The sym link will not work if the subdomain or the external domain has an existing folder on the server. The sym link is, in essence, a "folder structure" pointing to the primary domain.
I had tried adding a new subdomain recently and forgot to delete the folder before doing the sym link, and I had similar issues. See if this helps.
If not, post again and I'll see how I can help. My subdomains are working well on Bluehost.
Susan (joyseeker)
hello:the same subject
Thanks all of you
I will apply all and write all the steps on here and the results
thanks
mhamed
symlin
Hello again;
Here I try again:
-created sub-domain in bluehost:'site'
-delete it
-created db
-root as privileged user
-created the folder:site.example.com
-set settings.php uploaded it to the"site.example.com" folder .
-did the symlink:
<?phpsymlink( '/PATH/PATH/example.com', '/PATH/public_html/site.example.com' );?>
I see that the symlink created as site.example.com exists in the drupal instalation folder in :public_html
it is now live
Once raning the url: http://site.example.com
hence the error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@site.example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at site.example.com Port 80
mhamed
Even though this tutorial is
Even though this tutorial is for an installation of Drupal 7 for GreenGeeks, it is pretty much the same as for Bluehost.
Drupal 7 multisite installation
Multisite
yes this for multi_site installation but as add-on domains and not as a sub-site :
For me i got just one domain .com and only one
using this same domain I can install many sub-sites under the same directory which is example.com with no addon domains no other domains.
The problem in installing many drupals every time that you want to install a sub-site for a client make things complicated for you as webmaster to update every directory :
suppose that you ve got :
sub1.example.com,
sub2.example.com,
sub3.example.com,
one have to update every sub-domain module,themes and sub-theme and so on and so forth.
but with one drupal installation for all of these is a luxury
mhamed
In that case look at Display
In that case look at Display Suite.
hello again
After many problems of bluehost config and my site config but in-vain
So go on for the domain modules but still the problem of DNS emerge
Gone away to drupal tutorials and install.txt here are the results:
Triggering the drupal installation and so the sub-site installed using a :
-different database
-different user
-different settings.php
-rw permissions
-installation ok
*gone to bluehost cpanel/sub-domains/new sub-domain(with the same name of my new one)
-delete it from the file manager
-create a symlink
-go to the url of the sub-domain again ;
-does not work error 500
deleted the symlink
-still does not work
so:
I think the problem is with bluehost DNS
for now I can go on with:
http://drupal.org/documentation/install/multi-site
which can do for me
mhamed
Follow this tutorial for
Follow this tutorial for installing a multisite on a shared hosting account. I have several such accounts and assure you if you follow the steps it does work. Tutorial to install a Drupal multisite on a shared hosting account.
Give it a try because what you've done so far hasn't worked--and this does!
I have a question about:
I have a question about:
Final Steps to Complete Installation of Drupal Multisite
1. Open CPanel (if not already open), then 'Addon Domains'.
2. Delete the domain that you added earlier.
3. Return to the CPanel.Next to 'Addon Domains' is the 'Parked Domains' icon. Open it.
4. Add the domain you just deleted as a parked domain. Return to the CPanel.
At Bluehost, when I open "Addon Domains", there is no way I can delete the domain. Why would I want to do this anyway? Also, if I were to delete the domain, then how could I later park it? Besides, why delete the domain if I am going to park it as unassigned?
Subdomain ,multisite
Hello all;
An other time with subdomains or multisite under drupal on bluehost:
I managed to set a multisite in bluehost .
my domain :
wordtosay.com
now i can :
photo.wordtosay.com
gusinu.wordtosay.com
pergolo.wordtosay.com
and more
they all share the same modules and the same themes
and can use their proper ones buy creating the folder modules and the folder :themes
the outlines are like this:
<
ul>wordtosay.com:
sites- default
photo.wordtosay.com- modules folder
- themes folder
- settings.php file
-
-
pergolo.wordtosay.com- modules folder
- themes folder
- settings.php file
gusinu.wordtosay.com- modules folder
- themes folder
- settings.php file
This is the structure of the file manager;
But before all i had to adjust the DNS control all the sub-domains use the same ip adress but i had to wait more than four hours .I tried to chat with an operator .
***Create a database
with password and user
digit the address of the site I was redirected to an installation interface
---And here DONE
mhamed
Resolved?
Was this resolved? I've been running multisite on Bluehost for several years without problems. When you set up a sub domain on c-panel, don't let it give you the default folder. Change the path so the sub domain is aimed at the parent. Done. No symlinks required.
Bluehost the Easy Way
Setting up a subdomain seems like a lot of extra work IMHO. I've used this method countless times and it works fine. The one rule is that the primary domain set on the account must also be the primary Drupal site.
First, the domain must be an add-on. A folder will automatically be created: yourdomain.com. Delete that folder and unwrap Drupal install files--change the name to yourdomain.com. Install the site as you normally would.
Second, in the primary accounts 'site' folder create a folder: yourdomain.com. Inside that folder create these folders: files, theme, module. Copy the 'settings' file from the site>default folder from the Drupal site you just created to the folder site>yourdomain.com folder.
Third. Remove the yourdomain.com from add-on status and change it to a parked domain. It can take the server a few minutes to adjust. In the meantime you can delete the full install of yourdomain.com that is in root folder.
Finally, make sure all of the properties for your files and folders in sites>yourdomain.com have the proper permission.
If you find that changing permissions gets wonky call tech support and explain the situation. There is something that they change to make things work correctly (sorry, don't remember the exact terminology they used to explain what they did).
This works for other virtual host servers. I've been using it for years.
I need your help for
I need your help for subdomains and addon domains on Bluehost.
I have a primary D7 site name example.com. I want to create a sub domain for dev named dev.example.com. I also have few addons domains (site1.com, site2.com, site3.com etc etc) that I want to host on the same bluehost account. I created the subdomain and addon domains using cpanel. When i visit the sub domain, I get 403 error. the same with the add on domain BUT if I rename .htaccess file then both sucdmoain and addon works but the primary domain does not. Can someone please help me...
Procedure at the beginning of this thread
Hi,
The procedure to create a multisite setup is at the beginning of this thread. There's no need to touch .htacess.
The procedure takes 5 minutes, and it works 100%. The key is to delete the folder in File Manager right after you create the subdomain, and then run the symlink.
If you have further questions, please feel free to contact me directly through my profile.
Susan