AH00169: caught SIGTERM, shutting down for Mac - apache

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.

Related

apache not working, shows a "404 page not found" 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'

Apache2 not working after SSL certificate remove

im using vesta cp i remove the keys on the settings of the domain and the apache is not working how can i make it work again
Restarting web server apache2
...fail!
The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 83 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/conf.d/vesta.conf: Syntax error on line 1 of /home/admin/conf/web/sapache2.conf: without matching section
Action 'configtest' failed.
The Apache error log may have more information.
Error log
[Sun Dec 04 06:43:37.530259 2016] [:notice] [pid 1881]
mod_ruid2/0.9.8 enabled
[Sun Dec 04 06:43:37.535379 2016] [ssl:warn] [pid 1881] AH02292:
Init: Name-based SSL virtual hosts only work for clients with TLS
server name indication support (RFC 4366)
[Sun Dec 04 06:43:37.535844 2016] [mpm_prefork:notice] [pid 1881]
AH00163: Apache/2.4.7 (Ubuntu) mod_fcgid/2.3.9 PHP/5.5.9-1ubuntu4.17
OpenSSL/1.0.1f configured -- resuming normal operations
[Sun Dec 04 06:43:37.535858 2016] [core:notice] [pid 1881] AH00094:
Command line: '/usr/sbin/apache2'
[Mon Dec 05 18:42:53.735381 2016] [mpm_prefork:notice] [pid 1881]
AH00169: caught SIGTERM, shutting down
Run as root this command:
v-rebuild-user admin

Apache won't start on MAMP in Yosemite/Virtual Hosts don't resolve to their directories

I recently updated to Yosemite on my mac and I had been using virtual hosts on MAMP, and even after updating they were working fine, however I could not create a new virtual host. I messed around with a couple things, started and restarted apache and now all my virtual hosts resolve to a page that says "It Works!" and apache on MAMP won't start. I've already done the apache fix by changing the envarrs file to _envarrs. This is my apache error log file
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using
Harrys-MacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message
[Mon Nov 10 21:10:53.256847 2014] [mpm_prefork:notice] [pid 26139] AH00163: Apache/2.4.9 (Unix) PHP/5.6.2 configured -- resuming normal operations
[Mon Nov 10 21:10:53.256901 2014] [core:notice] [pid 26139] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Nov 10 21:12:14.386605 2014] [mpm_prefork:notice] [pid 26139] AH00169: caught SIGTERM, shutting down
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Harrys-MacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message
[Mon Nov 10 21:12:16.330823 2014] [mpm_prefork:notice] [pid 27444] AH00163: Apache/2.4.9 (Unix) PHP/5.6.2 configured -- resuming normal operations
[Mon Nov 10 21:12:16.330885 2014] [core:notice] [pid 27444] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Nov 10 21:13:12.913471 2014] [mpm_prefork:notice] [pid 27444] AH00169: caught SIGTERM, shutting down
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Harrys-MacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message
[Mon Nov 10 21:16:44.629618 2014] [mpm_prefork:notice] [pid 54] AH00163: Apache/2.4.9 (Unix) PHP/5.6.2 configured -- resuming normal operations
[Mon Nov 10 21:16:44.629939 2014] [core:notice] [pid 54] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Nov 10 21:27:57.710912 2014] [mpm_prefork:notice] [pid 54] AH00169: caught SIGTERM, shutting down
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Harrys-MacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message
[Mon Nov 10 21:28:04.948306 2014] [mpm_prefork:notice] [pid 3305] AH00163: Apache/2.4.9 (Unix) PHP/5.6.2 configured -- resuming normal operations
[Mon Nov 10 21:28:04.948362 2014] [core:notice] [pid 3305] 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

Error after upgrading to Apache 2.4.6

The "a2ensite""a2dissite" are not working
Echo:
ERROR: Site XXXXXX does not exist!
I swear it exists in sites-available folder.
After I typed a2ensite and double clicked the Tab button, it shows the /root directory.
There must be something wrong with the a2en/dissite script.
How can I make it back to work?
=====================
Here are the last lines of the error log:
[Sun Aug 04 22:59:31.406192 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 22:59:31.406433 2013] [core:notice] [pid 5378:tid 140459282536256] AH00094: Command line: '/usr/sbin/apache2'
[Sun Aug 04 23:09:44.648984 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00491: caught SIGTERM, shutting down
[Sun Aug 04 23:09:46.001182 2013] [mpm_event:notice] [pid 5692:tid 139671144335168] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 23:09:46.001490 2013] [core:notice] [pid 5692:tid 139671144335168] AH00094: Command line: '/usr/sbin/apache2'
Renaming site configuration files in /etc/apache2/sites-available/* into *.conf helped.
Example, when enabling site dummy.com, configuration file must be named dummy.com.conf.
Another solution is to change this line in /etc/apache2/apache2.conf from:
IncludeOptional sites-enabled/*.conf
to:
IncludeOptional sites-enabled/*