Results 1 to 6 of 6

Thread: Multi-site support?

  1. #1
    bkudria is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    22

    Default Multi-site support?

    Does SugarCRM support running multiple instances of the app based on the request URL? I use this feature extensively in Drupal (http://drupal.org/node/260) and was wondering if there is something similar for sugar.

    Thanks!

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Multi-site support?

    Quote Originally Posted by bkudria
    Does SugarCRM support running multiple instances of the app based on the request URL? I use this feature extensively in Drupal (http://drupal.org/node/260) and was wondering if there is something similar for sugar.

    Thanks!
    You should be able to do this no problem. I have at least a dozen copies running on the same machine using different URLs.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    sugarcare is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    405

    Default Re: Multi-site support?

    From a layman terms, I believe I copy the sugarsuite into a dir named client1_sugarcrm and make that as a URL.
    For another client, client2_sugarcrm. Is it like that?

    I hope note / attachments will be relative to their own dirs. For client1, provide permissions to client1 dir and for client2 to client2.

    Am I right?

    I hear that Virtual domain may help here too. How does that work?

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Multi-site support?

    Quote Originally Posted by sugarcare
    From a layman terms, I believe I copy the sugarsuite into a dir named client1_sugarcrm and make that as a URL.
    For another client, client2_sugarcrm. Is it like that?

    I hope note / attachments will be relative to their own dirs. For client1, provide permissions to client1 dir and for client2 to client2.

    Am I right?

    I hear that Virtual domain may help here too. How does that work?
    Using virtual domains you can any number of URLs not just sub-domains. You can have www.crm.com and www.anothersite.com on the same server. If you use IP based domains each domain has its own IP address too. My server has 14 separate domains and IP addresses because each store has it's own Security certificate.

    And yes everything is relative to it's own directory.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    bkudria is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    22

    Default Re: Multi-site support?

    Great! How do i implement the details? Do I just point a symlink to the sugar dir and use the install script? Is there anything else I have to keep track of? Is this in the docs somewhere? Thanks!

  6. #6
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Multi-site support?

    You can not use simlinks for the SugarCRM Directory as the configuration and cache directories will be diffrent for each instance of SugarCRM. Not to mention upgrade hell for you unless you are very good at shell scripting, SQL and understanding hardlinking all files except config.php, config_override.php and the following directories for each instance should be not linked at all: cache/ and cusom/

    Symbolic links and apache/php does not do what you expect it to do. Instead of executing the php script it displays the content of the php script. That is why hard links are nessary if you want to share common files without using up execss space.

    The Gentoo distribution (Expertise in Linux Required to use Gentoo which can be found at http://www.gentoo.org ) there is a system utilitiy to do the linking called webapp-config I am working on a SugarCRM config for that utility that will do the hard linking of common files.


    One other thing is you will have to create a database instance for each instance of SugarCRM.

    The easiest way is to copy into each directory a complete copy of the SugarCRM files and run the install for each directory with seperate database instances(be sure to rename the default database name during the install and create a new user for each database).
    Last edited by kpit; 2006-09-06 at 07:34 PM.
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •