I have installed Drupal 6 for maindomain.com in public_html/drupal, so the main install is in a subsite and not directly in the public_html directory.

I have created subsites as follows:
drupal/sites/maindomain.com.subsite1
drupal/sites/maindomain.com.subsite2
and, of course, did all things necessary to install these

By SSH in the public_html directory, I created symlinks like:
ln -s drupal subsite1
ln -s drupal subsite2

Then, I installed each. These are accessed by http://maindomain.com/subsite1 and http://maindomain.com/subsite2. Both are working fine.

Now, I want to create site3.com as a true domain, to be accessed by http://site3.com with "site3.com" showing in the browser address bar. So far, I have done the following:

Registered site3.com and pointed to nameservers of maindomain.com
Parked site3.com on maindomain.com
Created drupal/sites/site3.com directory
Copied default.settings.php to drupal/sites/site3.com; renamed to settings.php; permissioned 666
Created files directory in drupal/sites/site3.com; permissioned 777
Copied install.php from default directory to drupal/sites/site3.com

When I browse to site3.com, I see a directory listing for maindomain.com and going to site3.com/install.php gives a broken link error.

I expect that I need a proper symlink, but (from public_html) the command...
ln -s drupal site3.com
...doesn't work.

I would greatly appreciate any and all help in trying to get this done.

Comments

jfmoore’s picture

The answer was to set up site3.com as an "addon" domain in cpanel, rather than a "parked" domain. And, if anyone is wondering, yes, you can still setup email addresses in cpanel for parked and addon domains. I believe you can also setup email accounts, although I haven't tried it.