Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2008
    Location
    Bucharest, Romania
    Posts
    5

    Default MySQL and BIND problem

    Hello, I'm trying to start MySQL server on my cPanle, but I get the following error:
    /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed"). I use CentOS 5.0 x86_64 cPanel. The server version was downloaded from cPanel web site.

    And my second problem is BIND. I am trying to start BIND from VHM and I get the following error:
    named has failed, please contact the sysadmin (result was "named is not running"). Mar 10 10:05:40 sun named: none:0: open: /etc/named.conf: file not found. The file named.conf is on the server but it seems is it can't be read. Regarding mysql error no mysql.sock file is on the server.

    I use WHM 11.15.0 cPanel 11.18.2-R21613
    CENTOS Enterprise 5 x86_64 on standard - WHM X v3.1.0 the demo version. Can be the demo version the problem?

    Lucian

  2. #2
    cPanel Staff cPanelJesse's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    35

    Default

    The MySQL issue can be a number of causes, such as a previous version being stuck in the rpm's. (You can check by running rpm -qa |grep MySQL) Have you recently upgraded MySQL? Running /scripts/mysqlup --force can usually resolve your issues.

    It seems named is not able to read /etc/named.conf so it may have the wrong permissions or it is chattr +i

    If you provide the output of the permissions on named.conf ( ls -al |grep /etc/named.conf ) it could be better determined.
    Technical Analyst III
    --
    Migrating to cPanel from another control panel?
    http://www.cpanel.net/migrations-to-cpanel.html

  3. #3
    Member
    Join Date
    Mar 2008
    Location
    Bucharest, Romania
    Posts
    5

    Default

    Quote Originally Posted by cPanelJesse View Post
    The MySQL issue can be a number of causes, such as a previous version being stuck in the rpm's. (You can check by running rpm -qa |grep MySQL) Have you recently upgraded MySQL? Running /scripts/mysqlup --force can usually resolve your issues.

    It seems named is not able to read /etc/named.conf so it may have the wrong permissions or it is chattr +i

    If you provide the output of the permissions on named.conf ( ls -al |grep /etc/named.conf ) it could be better determined.
    Hello, the problem seems to be solved! I use DNS - BIND with out chroot and it is running. With MySQL I make a Server software update from WHM and now MySQL is srunning. I have a problem configuring apace with php right now because if I try to acces a page ith phpinfo() script I get the following error:
    Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

    Fatal error: Unknown: Failed opening required '/home/icsnet/public_html/test.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0. Thank you for your reply!

    Lucian

Similar Threads & Tags
Similar threads

  1. Bind-DLZ or other mysql bind offerings?????
    By 1EightT in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-04-2006, 05:30 AM
  2. Bind/Exim Problem, More of a Bind problem I think
    By silvernetuk in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 06-16-2004, 04:26 PM
  3. Bind and mySQL
    By networkalive in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-13-2003, 08:16 PM
  4. Problem with bind, mysql and syslog
    By metrop in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-14-2003, 12:22 PM
  5. what going on with apache, bind, mysql and interchange faile
    By silvernetuk in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 01-22-2003, 08:21 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube