Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jul 2006
    Posts
    290

    Default Setup Separate Web and DB server

    Hello all,

    I am in the midst of setting up a separate web server (with cpanel installed on it) and mysql server. I am having issues getting WHM to connect to the separated SQL box, what exactly do I need to have installed on the SQL server for WHM to be able to install and connect to it?

    Thanks

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ChrisRHS View Post
    Hello all,

    I am in the midst of setting up a separate web server (with cpanel installed on it) and mysql server. I am having issues getting WHM to connect to the separated SQL box, what exactly do I need to have installed on the SQL server for WHM to be able to install and connect to it?

    Thanks
    The cPanel/WHM server must be able to connect to the MySQL server by means of SSH. Be sure to verify this by SSHing to your cPanel/WHM machine then from that machine, SSH to the MySQL server. Connecting via SSH from your workstation directly to the MySQL server does not prove that the cPanel/WHM server can connect to the MySQL server.

    Additionally, MySQL and Perl must already be installed on that server.

  3. #3
    Member
    Join Date
    Jul 2006
    Posts
    290

    Default

    Thank you, I've managed to get some dependencies figured out, and now I am receiving this error:

    Code:
        root      6609  0.1  0.0  65904  1368 ?        S    22:01   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
        mysql     6675  0.2  0.3 222952 27552 ?        S
    
    Done
    Testing new mysql setup...Failed to connect to the remote mysql host:
    
    /usr/bin/mysqladmin: connect to server at '192.168.0.2  ' failed
    error: 'Lost connection to MySQL server at 'reading initial communication packet', system error: 113'

  4. #4
    Member
    Join Date
    Jul 2006
    Posts
    290

    Default

    Ok, just an update, I have everything setup now, and it seems to be working (there was an issue with eth: connection to the db), however, I do a couple of small problems / questions. First off, I've had to disable automatic updates, as it seems this breaks the connection for the separate DB server, and the only way to get it back, is to redo the connection. I also have a question with regards to the status monitoring, which MySQL is actually being monitored, as it seems that MySQL is still running on the cPanel installed box, as well as the separated DB server. The third question is, RoundCube reports a db connection error when trying to access it, the other two, do not. Is this a know problem?

    cPanel 11.24.2-C32283 - WHM 11.24.2 - X 3.9
    CENTOS 5.2 x86_64 on standard

Similar Threads & Tags
Similar threads

  1. cPanel control separate web and mysql server?
    By NDanecker in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-13-2010, 12:47 PM
  2. Separate web/email/database servers managed from one WHM/CPanel Server?
    By chuckd3mon in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-28-2007, 09:31 PM
  3. Keep email but point web traffic to separate server?
    By artful in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-14-2007, 12:51 AM
  4. Separate 1 server into 2 server (http & web)
    By expert_15 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-19-2005, 11:22 AM
  5. whm/cpanel and separate web/database servers?
    By eva2000 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-28-2001, 09:26 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube