- Using PHP MySQL or any other database application, create a database by the name "domain2"
- Grant full privileges to the database to the default user
- Using phpMyAdmin, create the tables and default data in your database by suitably modifying the drupal database file ("database.sql").
- Using cPanel or ftp, create a sub-directory in the "/sites" directory called "domain2.com"
- Copy the /sites/default/settings.php to the new directory /sites/domain2.com/settings.php
- Make changes to the following line in the new settings.php file
$db_url = 'mysql://db-username:db-password@localhost/new-db-name'; - Create a symlink from the new location to the main site, using the command (for example):
ln -s /home/username/public_html/
/home/username/public_html/domainname2
Here, I am assuming your webhost has parked your new domain at "/domainname2" folder of your main account. In this example, the url http://domainname2.tld should resolve to the physical folder /home/username/public_html/domainname2 on your server (or shared server).
If you don't have shell access and your webhost does not support creating symlinks, try out the symlink() function in php. Here is a step by step guide to using symlink function if you dont have shell access. Note that for this to work, it is necessary to delete the physical folder "/home/username/public_html/domainname2" from your web server, as the link created by symlink() is only symbolic and not actual. The article explains that in detail.
Original Post: http://drupal.org/node/107347

2 comments:
Randy Run has the contacts to first-class pro gamers, who not only supply your daily dose of WoW gold, but also offer interesting level services like WoW powerleveling, Wow profession levelling and WoW PvP levelling.
Nice posting
Post a Comment