Fix Apache frequent reboot problem-caught Sigterm, shutting down

Source: Internet
Author: User
There is a host in the host cluster is always a reboot phenomenon, very frequent, almost 2 days a time. At first Cosbeta did not notice it, because the time of reboot is very short, may also cause the Web server to interrupt 10-30 seconds.

However, the time for today's restart occurs during the day in China, just a user on the QQ to me said that the site can not open, and so I see the message to test, but also open, it seems that the Apache server restart speed is very fast, although the impact is not easy to solve the inevitable a little uncomfortable.

According to Cosbeta's experience, the problem is mostly Apache file configuration A little problem, after all, the Apache service can be forced to start, so first to check the error file, get the wrong hint as follows:

(show/hide) plain text [Sat 12:58:48 2009] [ERROR] [client 94.26.67.199] File does not exist:/VAR/WWW/HTML/WHM [Sat May 12:58:48 2009] [ERROR] [client 94.26.67.199] File does not exist:/var/www/html/favicon.ico [Sat 30 14:23:43 2 009] [notice] caught sigterm, shutting down

From this error log can not completely see what the problem is, so or test the Apache file configuration is correct. SSH Log on server:

Root@serverx [~]# apachectl configtest
[Tue June 09 02:03:45 2009] [ERROR] VirtualHost 66.40.x.x:0-mixing * Ports and non-* ports with a namevirtualhost address are not supported, proceeding with Undefined results

Sure enough, the original is a VirtualHost configuration error, IP after the addition of wildcard * as the port number, it seems that the Apache do not eat this set, the solution is either remove the wildcard * to the wildcard, or specify a specific port.

After correcting, again test Apache configuration, all OK, problem solved.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.