Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2010
    Posts
    10

    Default Weird cPanel Issue / client sites going offline

    hi,

    last few days I'm experiencing a problem with my cpanel server.

    All of client websites stop responding for a few minutes, then they come back online. In that time, cpanel web interface is working.

    If I restart apache manually in that time, the sites start working again. I've checked apache error log, but was unable to find any errors that may be causing this issue.

    Any advice? I'm really puzzled, don't know what else to check for.

  2. #2
    Member PHP Warner's Avatar
    Join Date
    Aug 2006
    Posts
    23

    Default Re: Weird cPanel Issue / client sites going offline

    Have you tried to build apache again?

  3. #3
    Member
    Join Date
    Nov 2010
    Posts
    10

    Default Re: Weird cPanel Issue / client sites going offline

    I have not. Will do and report how it goes.

  4. #4
    Member
    Join Date
    Nov 2010
    Posts
    10

    Default Re: Weird cPanel Issue / client sites going offline

    Quote Originally Posted by PHP Warner View Post
    Have you tried to build apache again?
    I have rebuilded apache, however the problem persists. I'm using Munin Service Monitor and during these "outages", I've noticed spikes in following areas:

    - netstat - 300+ connections; average is around 50-80
    - number of processes - 400+; average is around 250
    - cpu usage
    - commited memory usage

    I'm guessing there has to be some kind of malicious software running on the system, however I've done a complete system sweep of malicious sites and fixed them all - i think. Also, I have CSF firewall installed which prevents the use of unauthorised ports.

    Any other suggestions?

    System info:
    CPU: Quad-Core Intel(R) Xeon(R) CPU E5504 @ 2.00GHz
    Memory: 12287856k/13631488k available (2575k kernel code, 285772k reserved, 1304k data, 212k init)
    Kernel: 2.6.18-194.26.1.el5
    Cpanel build: 11.28.64
    Apache: Server Version: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.16 mod_perl/2.0.4 Perl/v5.8.8
    MySQL: Currently installed: 5.0.91
    System: CentOS 5.5 x64 standard

  5. #5
    Member
    Join Date
    Jan 2011
    Posts
    505
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Weird cPanel Issue / client sites going offline

    Hello,

    As the connections and processes are high it will be really good to do a security audit. You can install mod security, do a clamscan/maldetect scanning as a security measure. Also make sure your kernel is non vulnerable!

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Weird cPanel Issue / client sites going offline

    Quote Originally Posted by skysel View Post
    hi,

    last few days I'm experiencing a problem with my cpanel server.

    All of client websites stop responding for a few minutes, then they come back online. In that time, cpanel web interface is working.

    If I restart apache manually in that time, the sites start working again. I've checked apache error log, but was unable to find any errors that may be causing this issue.

    Any advice? I'm really puzzled, don't know what else to check for.
    I'm quoting this message as it already tells me the issue isn't likely a malicious process running on the machine. You have netstat showing high connections and the issue is Apache, so you are either hitting MaxClients (so your Apache cannot serve any more connections for sites), or you are getting hit by a denial of service (DoS) attack. This is only Apache getting hammered by connections, so it isn't any other service being impacted (your cPanel is fine for example, you can log into SSH for example).

    I have a post that I did recently on how to handle both of the above type of situations (MaxClients limit or DoS attack):

    how to restart apache trough cpanel command line?

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Member
    Join Date
    Nov 2010
    Posts
    10

    Default Re: Weird cPanel Issue / client sites going offline

    Quote Originally Posted by cPanelTristan View Post
    I'm quoting this message as it already tells me the issue isn't likely a malicious process running on the machine. You have netstat showing high connections and the issue is Apache, so you are either hitting MaxClients (so your Apache cannot serve any more connections for sites), or you are getting hit by a denial of service (DoS) attack. This is only Apache getting hammered by connections, so it isn't any other service being impacted (your cPanel is fine for example, you can log into SSH for example).

    I have a post that I did recently on how to handle both of the above type of situations (MaxClients limit or DoS attack):

    how to restart apache trough cpanel command line?

    Thanks.
    Thank you, cPanelTristan. I've made the modifications on the server, raised the MaxClients limit (there has been 1 occurence in error log that apache hit max) and also applied the iptables rule. Now I'll have to wait few days to see if it's going any better.

    Meanwhile, for a better presentation, below are relevant graphs to my problems if you think you can suggest anything else:

    Apache:



    CPU:


    INODE:


    NETSTAT:


    PROCESSESS:

Similar Threads & Tags
Similar threads

  1. Server Online but Sites Offline
    By rohit09 in forum New User Questions
    Replies: 2
    Last Post: 07-13-2011, 01:27 PM
  2. Apache won't restart after installing wildcard SSL in WHM - PROBLEM sites offline
    By Niels Leenders in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-14-2011, 12:32 PM
  3. how can i recompile php without recompiling apache and my sites being offline?
    By jclarkkent2003 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-07-2006, 10:18 AM
  4. many sites offline please help
    By ivaserver in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-25-2003, 10:02 PM
  5. Urgent!!! 544 sites offline
    By cjanjacomo in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-01-2003, 04:09 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube