Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

about cpanel.config and server craches...

Discussion in 'General Discussion' started by masterross, Nov 23, 2005.

  1. masterross

    masterross Active Member

    Joined:
    Apr 7, 2004
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    153
    hello,

    i have big probs with my server!
    Recently (about 50 times per day) cpsrvd and httpd restarts itself!!!

    cpsrvd failed @ Wed Nov 23 11:48:01 2005. A restart was attempted automagicly.
    cpsrvd failed @ Wed Nov 23 11:21:29 2005. A restart was attempted automagicly.
    httpd failed @ Wed Nov 23 10:42:53 2005. A restart was attempted automagicly.
    cpsrvd failed @ Wed Nov 23 10:42:53 2005. A restart was attempted automagicly.
    httpd failed @ Wed Nov 23 10:30:36 2005. A restart was attempted automagicly.
    httpd failed @ Wed Nov 23 10:00:19 2005. A restart was attempted automagicly.
    ....
    ....

    most time cpsrvd restarts even with low loads and after that httpd :(

    i saw in cpanel.config option - maxmem=128
    what does it means?

    thanks,
    Ross
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You really need to check the log files for those to when they crash to see if they indicate why:

    /usr/local/apache/logs/error_log
    /usr/local/cpanel/logs/error_log
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. masterross

    masterross Active Member

    Joined:
    Apr 7, 2004
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    153
    hello,

    i've found that MySQL die after:
    [error] server reached MaxClients setting, consider raising the MaxClients setting

    but i already set MaxClients to 350

    also here is the content of /usr/local/cpanel/logs/error_log
    Child [14381]: exited with signal 13
    Child [15096]: exited with signal 13

    and why in my.cnf there is only 2 raws?

    [mysqld]
    set-variable = max_connections=500
    safe-show-database


    here is my Apache settings:

    Timeout 200
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 10
    MinSpareServers 5
    MaxSpareServers 10
    StartServers 20
    MaxClients 350
    MaxRequestsPerChild 200


    regards,
    Ross
     
  4. masterross

    masterross Active Member

    Joined:
    Apr 7, 2004
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    153
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in /home/iphone/public_html/db/mysql4.php on line 48
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/iphone/public_html/db/mysql4.php on line 330
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/iphone/public_html/db/mysql4.php on line 331
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in /home/iphone/public_html/db/mysql4.php on line 48
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/iphone/public_html/db/mysql4.php on line 330
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/iphone/public_html/db/mysql4.php on line 331
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in /home/iphone/public_html/db/mysql4.php on line 48
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/iphone/public_html/db/mysql4.php on line 330
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/iphone/public_html/db/mysql4.php on line 331
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in /home/iphone/public_html/db/mysql4.php on line 48
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/iphone/public_html/db/mysql4.php on line 330
    [Thu Nov 24 13:03:54 2005] [error] PHP Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/iphone/public_html/db/mysql4.php on line 331
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice