Web Hosting Talk







View Full Version : Apache didn't restart


Wilbo
09-08-2003, 07:43 AM
What would cause apache not to restart after logrotate and how would I determine this?

UH-Matt
09-08-2003, 07:49 AM
It should write something to the error_log if it fails to start.

Wilbo
09-08-2003, 07:58 AM
here is the error I get

[Mon Sep 8 04:03:53 2003] [error] mod_ssl: Init: (***********:443) Ops, no RSA or DSA server certificate found?!
[Mon Sep 8 04:03:53 2003] [error] mod_ssl: Init: (x***********:443) You have to perform a *full* server restart when you added or r
emoved a certificate and/or key file
[Mon Sep 8 06:29:46 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.1.2 mod_perl
/1.26 configured -- resuming normal operations

I changed the host sddress, would that be the problem and all I have to do is reboot the server now to fix this?

SROHost
09-08-2003, 09:06 AM
If you're running SSL, apache needs to be fully stopped then started, not restarted. Also, if you changed the host address, you'll probably need to generate a new SSL cert for that hostname before running Apache SSL.

SROHost
09-08-2003, 09:17 AM
You can fix this by replacing "reload" with "graceful" in the postrotate command in your logrotate config.