Drupal Multi-site - Sharing the same code base

Here I dont want explain more! just simple steps:

1.Install Drupal with default setting:
Now your website is available at www.example.com

2.Create New subdomain, we call that "sub"

  1. sub.example.com

3. Create new folder in your sites folder and call it "sub.example.com"

  1. /public_html/sites/all
  2. /public_html/sites/default
  3. ===> /public_html/sites/sub.example.com

4. Create or copying bellow folders and file in your "sub.example.com" folder

  1. /public_html/sites/sub.example.com/files/
  2. /public_html/sites/sub.example.com/themes/
  3. /public_html/sites/sub.example.com/modules/
  4. /public_html/sites/sub.example.com/settings.php --->with write permission 666 or 644

5. Rename example.sites.php file in your sites folder to sites.php

  1. ===> /public_html/sites/sites.php
  2.  
  3. //add this line to your sites.php file.
  4. $sites['sub.example.com'] = 'sub.example.com';

6. Create symlink file in your public_html folder we call it "mysymlink.php"

  1. <?php
  2. symlink('/home/your_hosting_user/domains/example.com/public_html/','sub');
  3. ?>

7. Now everything done!

  1. http://sub.example.com/install.php


Article Information
Article ID Categories Tags Levels Status
#32
Free
Solved