Apache keep shutting down by itself with no log error - apache

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.

Related

AH00169: caught SIGTERM, shutting down for Mac

Apache and MySQL failed to start in XAMPP 7.1.27-1. I got the above error, below is the error log.
[Tue Dec 29 10:21:26.460495 2020] [lbmethod_heartbeat:notice] [pid 15627] AH02282: No slotmem from mod_heartmonitor
[Tue Dec 29 10:21:26.467621 2020] [mpm_prefork:notice] [pid 15627] AH00163: Apache/2.4.38 (Unix) OpenSSL/1.0.2r PHP/7.1.27 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Tue Dec 29 10:21:26.467685 2020] [core:notice] [pid 15627] AH00094: Command line: '/Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -D SSL -D PHP'
[Fri Jan 15 06:55:08.753700 2021] [mpm_prefork:notice] [pid 15627] AH00169: caught SIGTERM, shutting down
I have used the lsof -i list and kill -9 PROCESS_ID to kill all processes that run under localhost. I have also changed the apache port, but still apache and MySQL not running.
Try the following command
sudo /Applications/XAMPP/xamppfiles/bin/httpd -k start
Currently, this is my temporary solution.
1: Edit this file
sudo nano /Applications/XAMPP/xamppfiles/etc/my.cnf
2: Add this line, then save the file
innodb_force_recovery = 1
3: then start MySQL with the below code
sudo /Applications/XAMPP/bin/mysql.server start
4: comment the added line in my.cnf, then save the file
#innodb_force_recovery = 1
5: Stop the MySQL
sudo /Applications/XAMPP/bin/mysql.server stop
6: Use XAMPP Manager to start MySQL
When you restart your PC, you have to repeat these steps.

many graceful restarts in apache2 error log?

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?

Apache gives intermittent 503

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'

Error after updating Apache on Ubuntu 13.04 (Raring Ringtail)

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

Apache Won't Start on new Xampp installation: The pipe has been ended. Child: Unable to read socket data from parent

I've just installed Xampp 1.8.1 on Windows 8. I try to start Apache and it initially turns Green, then shuts down. I check the error logs, but the error messages are Greek to me, even after googling.
Here's a screencast: http://screencast.com/t/VnSsZy6h9Wap
Here are the error messages:
[mpm_winnt:notice] [pid 4676:tid 392] AH00455: Apache/2.4.3 (Win32) PHP/5.4.7 configured -- resuming normal operations
[mpm_winnt:notice] [pid 4676:tid 392] AH00456: Server built: Aug 18 2012 12:41:37
[core:notice] [pid 4676:tid 392] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[mpm_winnt:notice] [pid 4676:tid 392] AH00418: Parent: Created child process 732
[mpm_winnt:crit] [pid 732:tid 392] (OS 109)The pipe has been ended. : AH00404: Child: Unable to read socket data from parent
[mpm_winnt:crit] [pid 4676:tid 392] AH00427: Parent: child process exited with status 3 -- Aborting.
Skype is not installed. I added C:\xampp\apache\bin\httpd.exe to Windows Defender, and even disabled Windows Firewall.
You may try two things..
one, configure apache on a different port other than what it's configured right now (may be default 80)..
second thing, you try Not to install apache as a service..if it's installed as a service you can use sc delete [service name] to delete the service..