Apache2 Crashes

The Apache server suddenly stops. I am running Debian Jessie

Here are some diagnostics:

root@meow:/var/www# apachectl configtest
AH00558: apache2: Could not  reliably determine the server's fully qualified domain name, using  127.0.1.1. Set the 'ServerName' directive globally to suppress this  message
Syntax OK

root@meow:/var/www# 
root@meow:/var/www# tail  /var/log/apache2/error.log
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at Xdebug: Documentation for a later version of Xdebug.

[Thu Nov 27 13:16:02.622987 2014] [mpm_prefork:notice] [pid 1988] AH00169: caught SIGTERM, shutting down
Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at Xdebug: Documentation for a later version of Xdebug.

[Thu  Nov 27 13:16:15.383356 2014] [mpm_prefork:notice] [pid 8198] AH00163:  Apache/2.4.9 (Debian) PHP/5.6.0RC2 configured -- resuming normal  operations
[Thu Nov 27 13:16:15.383423 2014] [core:notice] [pid 8198] AH00094: Command line: '/usr/sbin/apache2'

Can you get a stack trace 'where' from a core dump?

Simple turn off Xdebug for now and fix your hostname.

Apache is not crashing, it is just not starting correctly because it is misconfigure.

(1) Comment out Xdebug

(2) Fix your hostname issue.

(3) Restart Apache

Thanks to all -

DGPicket -

Can you get a stack trace 'where' from a core dump?
Definitly will.

Neo -

(1) Comment out Xdebug - Don't I need it for Netbeans?
(2) Fix your hostname issue. - System is using localhost as a default. What should I use?

I am a newbie.

To all - How do I enable spell check in the Quick Reply box?

Yes, debuggers like adb, dbx and gdb can take a core dump or running process, or run a process. They can tell you what the calls down to the failing subroutine are.

You can also run it under 'strace' with very nosy options to get a list of all system calls up to the end. It will show any missed logging, failing calls.