Apache caught SIGTERM?

Graham Stevens graham.stevens at gmail.com
Tue Mar 1 09:49:06 UTC 2022


Hi Das,

Sorry I can't help you with the certbot stuff.  I've not used their cert
generation.  But it sounds as though you may have a problem with your
Apache config.  Does MAMP have a tool for checking the config syntax.  From
the command line I can use:

apachectl -t

But I am not familiar with MAMP.

And that brings me to a quick workaround to disable the built in Apache
from running.  Just put an invalid line at the start of its config file.
You can test this by using nano to add a line of text at the beginning of
the httpd.conf file. I use "This line will prevent Apache from starting up":

sudo nano /private/etc/apache2/httpd.conf

After saving the file, if you use apachectl to check the syntax it should
report an error:

> apachectl -t
AH00526: Syntax error on line 1 of /private.etc/apache2/httpd.conf:
Invalid command 'This'

For all the purists out there, I know it's a kludge but it works.

Hope this helps,
Graham


More information about the omnisdev-en mailing list