Hi,I am trying to install Drupal on three domains hosted at same account in Hostgator.
I installed the first drupal on the domain that is acting as the primary domain, then tried to install two drupal scripts on two different domains.

This being a single account all addon domains point o the primary domain. In essence therefore when I search for the other two scripts, the search results return the original/primary domain site. How can I separate these three without conflict.

Lastly, I wasn't able to install manually, i installed using Cpanel' fantastico programme, meaning i have no choice but install drupal 5.I would like to install drupal 6.

Please help.

Comments

jwalling’s picture

Assuming main domain is foobar.com and addon domain is foobie.com
and
Assuming, foobie.com points to a subdirectory of the main account:
main domain path
/home/username/www
addon domain path
/home/username/www/foobie

If Drupal index.php is here:
http://www.foobie.com/index.php
Backup and Edit /foobie/.htaccess
Change
# RewriteBase /
To
RewriteBase /foobie
OR
If Drupal index.php is here:
http://www.foobie.com/drupal/index.php
Backup and Edit /foobie/drupal/.htaccess
Change
# RewriteBase /
To
RewriteBase /foobie/drupal

If needed
Backup & Edit settings.php for foobie.com
$base_url = 'http://www.foobie.com'; // NO trailing slash!

Repeat as needed for addon domains.

Caveat: If addon domains are not in subdirectories of the main domain, you will need to modify the above instructions.

John

brucealdridge’s picture

my advice, don't use fantastico ... install it manually, its pretty quick and easy.

secondly hostgator live support is pretty good, any questions you have just ask them (link on hostgator.com)

as for creating 3 different drupal sites...

under the sites folder, add
example1/settings.php
example2/settings.php
example3/settings.php
(for example1.com, example2.com, example3.com)
(copy and paste from default/settings.php )

and add 3 new databases (or create one databases with 3 different prefixes)

hope this helps

--
plus reading johns reply above, i'm not entirely sure what you mean... you may need to provide an example

-bruce

webb-1’s picture

Thanks a lot for your help. I am technically challenged so I will need to think over and over again on what you have said. So I will take some time to revisit the issue then post my failure / success here later in the day.
Watch this space and thanks.
Regards,
Pat

webb-1’s picture

Should i remove the scripts on the server at the moment? will they upset the server settings? especially the primary domain?
Thanks.

webb-1’s picture

I removed the old one and tried to install a fresh. Now is the message I am getting after setting up database and sorting out register-enabled.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in /home/w/public_html/aa.com/includes/menu.inc on line 316.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in /home/w/public_html/aa.com/includes/menu.inc on line 316.
and

Warning: Unknown column 'serialized' in 'field list' query: SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'variables' in /home/w/public_html/aa.com/includes/database.mysqli.inc on line 128

Warning: Unknown column 'serialized' in 'field list' query: UPDATE cache SET data = 'a:11:{s:13:\"theme_default\";s:7:\"garland\";s:13:\"filter_html_1\";i:1;s:18:\"node_options_forum\";a:1:{i:0;s:6:\"status\";}s:17:\"menu_primary_menu\";i:2;s:19:\"menu_secondary_menu\";i:2;s:15:\"install_profile\";s:7:\"default\";s:17:\"node_options_page\";a:1:{i:0;s:6:\"status\";}s:12:\"comment_page\";i:0;s:14:\"theme_settings\";a:1:{s:21:\"toggle_node_info_page\";b:0;}s:18:\"drupal_private_key\";s:64:\"e32a45e1ee38e1f87a3766f55d54bee9a2f163500cad8a7b15668d6f3f5c1ce2\";s:12:\"install_task\";s:21:\"profile-install-batch\";}', created = 1203344439, expire = 0, headers = '', serialized = 1 WHERE cid = 'variables' in /home/w/public_html/aa.com/includes/database.mysqli.inc on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/webbo/public_html/idhaa.com/includes/database.mysqli.inc:128) in /home/webbo/public_html/idhaa.com/includes/bootstrap.inc on line 577

Warning: Cannot modify header information - headers already sent by (output started at /home/w/public_html/aa.com/includes/database.mysqli.inc:128) in /home/w/public_html/aa.com/includes/bootstrap.inc on line 578

Warning: Cannot modify header information - headers already sent by (output started at /home/w/public_html/aa.com/includes/database.mysqli.inc:128) in /home/w/public_html/aa.com/includes/bootstrap.inc on line 579

Warning: Cannot modify header information - headers already sent by (output started at /home/webbo/public_html/aa.com/includes/database.mysqli.inc:128) in /home/w/public_html/aa.com/includes/bootstrap.inc on line 580

webb-1’s picture

Hey people, I love Drupal, I want to be part of this awesome community but at the same time, i need to use my time profitably. For 2 weeks I have been trying this script. If i was to write a normal css/html template, i would be whistling over a cup coffee now But with drupal I am stuck at installation. Is there a community member willing to change my mind that Drupal is the future? if yes, please help.

chasesagum’s picture

webb - how did everything work out? I hope you didn't give up on Drupal. The issue you were stating was a web server problem, not a problem with Drupal. When you addon the new domain in your Hostgator cpanel you have to make sure that you create a new directory for that addon domain.

From that point on it's all about installing Drupal one site at a time. I too would not recommend using the Fantastico tool, but rather do it manually instead. Here are my step by step instructions with screenshots to walk you through it.
http://chasesagum.com/installing-drupal

1websitedesigner’s picture

Here's a tutorial on how to install multiple instances of Drupal with AddOn domains in Hostgator without needing Fantastico:

Installing Drupal in cPanel with Addon domains.

Hope it helps anyone finding this conversation!

dhruvpatel’s picture

You can search google for "how to install drupal on hostgator"
Or you can go through below search results:
https://www.youtube.com/watch?v=N2Cyfq61Yh0
http://hostgatorcouponandreview.com/hostgator-drupal.html
http://drupaltutorial.info/drupal-7-install