The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

httpd and sql errors....

Discussion in 'General Discussion' started by loststryk, Dec 11, 2007.

  1. loststryk

    loststryk Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London, UK.
    I have reciently bought a new server, cpanel is installed, however httpd and mysql wont run.

    these are the errors;

    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.sock dosent exist, i have checked.

    with httpd i get this ;

    /etc/init.d/httpd restart: httpd not running, trying to start
    Syntax error on line 40 of /usr/local/apache/conf/httpd.conf:
    Cannot load /usr/local/apache/modules/mod_bwlimited.so into server: /usr/local/apache/modules/mod_bwlimited.so: undefined symbol: ap_hook_post_config
    /etc/init.d/httpd restart: httpd co

    i keep editing lines out of the modules but they wont run.

    i am runnign centos 4.4, running as stable cpanel (latest version)

    i upgraded to sql 5, wont work, downgraded again wont work, have reinstalled apache several times and tried to reconfigure, done a lot of cpupdate --force commands, now i'm truly lost

    can anyone help me ?

    fruther errors :

    # service httpd restart
    /etc/init.d/httpd restart: httpd not running, trying to start
    Syntax error on line 40 of /usr/local/apache/conf/httpd.conf:
    Cannot load /usr/local/apache/modules/mod_bwlimited.so into server: /usr/local/apache/modules/mod_bwlimited.so: undefined symbol: ap_hook_post_config
    /etc/init.d/httpd restart: httpd could not be started
     
    #1 loststryk, Dec 11, 2007
    Last edited: Dec 11, 2007
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Although these are fairly easy fixes, your fastest solution is most likely rebuilding apache. If your mysql still will not start afterward, then running /scripts/mysqlup --force should get everything running again.
     
  3. loststryk

    loststryk Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London, UK.
    i already tried both of them, including a basic default apache

    these still throw up the same errors.
     
Loading...

Share This Page