Results 1 to 7 of 7

Thread: Installing SugarCRM with separate DB & Web Server

  1. #1
    yorkylad is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    11

    Default Installing SugarCRM with separate DB & Web Server

    HI,

    Is it possible to install SugarCRM onto two servers, one being the web server and the second being the DB (MYSQL)? Installing with the normal installation routine doesn't work.

    Are there any instruction available to describe how this can be done?

    Thanks in Advance

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

    Default Re: Installing SugarCRM with separate DB & Web Server

    Yes without a doubt... but it does require a little extra configuration of the database server to accept connections from other servers. I have set up several such installations. it is even capable to be scaled to several web servers to one db or large clusters of both web servers and db servers and load balancers. I spoke about this topic at the first SugarCon.
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



  3. #3
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Installing SugarCRM with separate DB & Web Server

    It's no problem to install webserver and dbserver on different machines.

    You must first install the dbserver on one machine. Then the db-admin user must have access from any host to this server. Perhaps you must change the rigths of the admin user.
    Then you can install Sugar on the other machine. During installation you are ask for hostname and database name. Here you can enter the dns host name of the first machine.

  4. #4
    yorkylad is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    11

    Default Re: Installing SugarCRM with separate DB & Web Server

    Hi Guys,

    Thanks for the quick reply, unfortunately I do not have good technical know how.

    @kpit - Is there a presenetation or a step by step instructions available somewhere? If yes where?

    @kuske - If I understand what you are saying I need a routing DB on the web server as well as on the DB server? Is that correct?

  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Installing SugarCRM with separate DB & Web Server

    No, on the webserver you need no mysql server but only the mysql client software. All routing is done by the mysql client via tcp/ip.

  6. #6
    john.luat is offline Senior Member
    Join Date
    Sep 2008
    Posts
    30

    Default Re: Installing SugarCRM with separate DB & Web Server

    Quote Originally Posted by kpit View Post
    Yes without a doubt... but it does require a little extra configuration of the database server to accept connections from other servers. I have set up several such installations. it is even capable to be scaled to several web servers to one db or large clusters of both web servers and db servers and load balancers. I spoke about this topic at the first SugarCon.
    Is there any resources in the web that pertains to how to do this? a forum or step by step guide maybe? Thanks in advance.

  7. #7
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,100

    Default Re: Installing SugarCRM with separate DB & Web Server

    There are a few ways to do this but here is my recommendation.

    On the database server, install mysql as recommended for that OS. For example, with Windows, use th official mysql installer. For linux, use the distribution's package management system.

    Once installed, mysql will have an admin user. This user will have full rights on all databases but MAY be limited to access the databases only from the machine directly. This is a very common security-aware configuration so that you don't unexpectedly allow admin (root) access from outside with default passwords etc.

    There are two options now to get this db server to work with a sugar install on another server. either.

    1. BAD - allow the admin/root user access from over the network. it's bad because if it is compromised, they can do anything to the database server. The password is stored in the sugar config so if you web server is compromised, they might be able to get complete control of your db server.

    2. GOOD - create a new user will full admin rights on the sugracrm database ONLY. that way, if the user/password is compromised, then they can only get to the sugar database and nothing else.

    To do the latter, get to the command prompt and type the following. this assumes that the default database admin user is called root.

    1. Type:

    Code:
    # mysqladmin -uroot -p create sugarcrm
    this will create a blank database called sugarcrm - it will prompt for the root password.
    Code:
    # mysql -uroot -p
    this will start the mysql shell - again the password is prompted for. Next type:
    Code:
    > create user 'sugaruser'@'%' identified by 'some_password';
    this will create the user sugaruser - next give that user admin rights for the sugarcrm database
    Code:
    > grant all privileges on sugarcrm.* to 'sugaruser'@'%';
    and to exit the mysql shell:
    Code:
    > quit
    Now - on the other server, install sugar and when prompted use the username "sugaruser" with the give password when creating the database "sugarcrm".

    If that doesn't work - then it might be that the mysql server is configured to not allow database connections from the network. If that's the case, let us know and we can take it from there.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sugarcrm not listening on Port 80
    By mtangella in forum Help
    Replies: 7
    Last Post: 2011-02-02, 02:35 PM
  2. Replies: 19
    Last Post: 2008-04-11, 05:41 PM
  3. Is it possible to install SugarCRM in to an existing SQL Server Database
    By cloghans in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2007-09-20, 08:27 AM
  4. Local Server Running SugarCRM, Pulic Server Running Mambo
    By C12H22O11 in forum Web Self Service Portal
    Replies: 1
    Last Post: 2007-03-09, 04:57 PM
  5. Replies: 11
    Last Post: 2006-10-26, 01:13 PM

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
  •