I have a apache2 server on RHEL 6 and in the past 3 days I have been getting an intermittent 503 response. Its just a couple in a 1000+ request. I had a look at cpu/mem/disk and all seem fine also i dont have any errors in the logs. Any idea what it could be?
Below is my error log which does not seem to be the issue due to the times being vastly different
[mpm_prefork:notice] [pid 19899] AH00170: caught SIGWINCH, shutting down gracefully
[ssl:warn] [pid 1188] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[mpm_prefork:notice] [pid 1188] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips configured -- resuming normal operations
[core:notice] [pid 1188] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
Related
My apache server keep shutting down by itself. When I check my error logs, I can see 15 files names like this
error.log.$NUMBER$.gz
The content of every error.log file is the following :
[mpm_prefork:notice] [pid 29495] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations
[core:notice] [pid 29495] AH00094: Command line: '/usr/sbin/apache2'
[mpm_prefork:notice] [pid 29495] AH00171: Graceful restart requested, doing restart
I can restart apache with no problem but i know in a few days it will shutdown again...
What am i missing ?
This sounds like a normal restart due to eg. log rotation.
The following error is repeatedly written to the apache2 error.log file.
[ssl:warn] [pid 23347] AH01909: mail.example.com:443:0 server certificate does NOT include an ID which matches the server name
[mpm_prefork:notice] [pid 23347] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1g mod_fcgid/2.3.9 configured -- resuming normal operations
[core:notice] [pid 23347] AH00094: Command line: '/usr/sbin/apache2'
[mpm_prefork:notice] [pid 23347] AH00171: Graceful restart requested, doing restart
Is this an error?
What should I do if it is an error?
i have been trying to set up apache2 on my ubuntu 16.04 but after successful install i get a 404 page not found error whenever i type localhost in the browser. I have uninstalled and installed apache2 several times but the problem still persists.
This is the output of my /var/log/apache2/error.log file..
[Tue Jun 26 02:20:52.809104 2018] [mpm_event:notice] [pid 1010:tid 139925306578816] AH00491: caught SIGTERM, shutting down
[Tue Jun 26 02:20:58.753357 2018] [mpm_event:notice] [pid 1359:tid 139843231913856] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Tue Jun 26 02:20:58.753554 2018] [core:notice] [pid 1359:tid 139843231913856] AH00094: Command line: '/usr/sbin/apache2'
I have three separate boxes running Apache 2.4, all with the same config and modules. On CentOS 7, Apache 2.4, PHP 5.6.
Two issues that could possibly be related. On one hand, I have not forced a restart, yet it would appear that apache restarted itself based on error_log being purged and having the below.
Second issue are the actual errors or warnings displayed. I can't figure out how to resolve them and if they could be the reason that Apache restarts itself in the first place, or be creating other issues elsewhere.
[Sun Jul 19 03:39:02.241577 2015] [auth_digest:notice] [pid 904] AH01757: generating secret for digest authentication ...
[Sun Jul 19 03:39:02.243161 2015] [lbmethod_heartbeat:notice] [pid 904] AH02282: No slotmem from mod_heartmonitor
[Sun Jul 19 03:39:02.246337 2015] [ssl:warn] [pid 904] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sun Jul 19 03:39:02.292119 2015] [mpm_prefork:notice] [pid 904] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Sun Jul 19 03:39:02.292151 2015] [core:notice] [pid 904] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
Would appreciate any guidance?
I have an error after updating my packages. When trying to start my webserver, it throws the following error.
$ sudo service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 84 of /etc/apache2/apache2.conf:
Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
And the Apache error log is (from file /var/log/apache2/error.log):
[Sat Aug 17 01:30:03 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.17RC1 configured -- resuming normal operations
[Sat Aug 17 01:41:38 2013] [notice] caught SIGTERM, shutting down
[Sat Aug 17 03:10:11.132425 2013] [mpm_prefork:notice] [pid 4182] AH00163: Apache/2.4.6 (Ubuntu) PHP/5.5.1-2+debphp.org~raring+2 configured -- resuming normal operations
[Sat Aug 17 03:10:11.143718 2013] [core:notice] [pid 4182] AH00094: Command line: '/usr/sbin/apache2'
[Sat Aug 17 03:13:56.527245 2013] [mpm_prefork:notice] [pid 4182] AH00169: caught SIGTERM, shutting down
What things do I have to do to recover or fix my server up?
Replace in apache2.conf:
LockFile /var/lock/apache2/accept.lock
with
Mutex file:${APACHE_LOCK_DIR} default
Actually, it is better to use a semaphore. Under Unix systems it is a lot faster and uses fewer resources.
And the option is just this:
Mutex sem