Easy multisite using cPanel

from Multi-site installation Question

Easy multisite using cPanel:

1. Install drupal codebase in the webroot of the main domain, with its own db.
2. Login to the cpanel interface for this main domain, click on 'Parked domains' and add the secondary domain for which you want to run a drupal based site.

By parking the domain for your second site (if it is a top level domain, it should have been registered, if it is a subdomain, then it's fine) on the main domain, you are creating a server alias that points to the same document root- the drupal codebase. This steps automatically configures httpd.conf for you.
3. Click on the Mysql databases link in the main domain's cPanel interface and do the following:
-Create a db for the second site
-Create a db user for the second site
-Grant this db user all privileges to the db you just created
4. Through command line or through an FTP program, create a directory (folder) within the 'sites' directory of your drupal install that corresponds to the second site you want to create- let's call this directory secondsite.org
5. Copy the settings.php of the main domain and put it inside the secondsite.org directory.
6. For good measure, also create a 'files' directory and 'tmp' directory within the secondsite.org directory
7. Run www.secondsite.org in your browser, enter the db details you created in Step 3 and finish the db configuration process for drupal for your new site
8. Repeat steps 3-7 for every other site you want to run off the codebase you installed in the first domain.

Notes:

* Most important
If you use cPanel to create drupal multi-site, DO NOT create the secondary sites as separate accounts in WHM (Web Host Manager). You just need to create one account for the main domain.

* Assumptions:
- You are running drupal 5.0 and above;
- You have access to cPanel for your domain;
- Adding parked domains is configured in your cpanel
- You can create multiple databases
- You are running the additional sites from their web root and not from subdirectories
* If you have completed the setup and database configuration of your first site, in Step 5, remember to remove the site-specific db details from settings.php after you have copied it to the secondsite.org directory. In other words, settings.php in each new site you create should be the pristine, unedited file that ships with drupal. The automatic drupal installer process will trip up if this file contains any db values. There is a workaround, but it can be confusing.
* Depending on how your server is setup, you may need to change the permission for settings.php to 777 to make the automatic installer work. Remember to set it back to a more secure permission after you are through with the site setup. I found that it was better to do this after creating the first account and setting up the file system settings, but your case may be different.
* Creating multi-site in a sub-domain: If you are setting up the multi-site on a sub-domain of the main domain, first create the sub-domain using the 'Sub domains' link in your main site's cPanel interface and then follow from Step 2 above to park this sub-domain on your main domain

----
Previously user Ramdak.