Server operating system + version
Debian 11.5 (64 bit)
Server virtualization technology used
KVM
KeyHelp version + build number
22.2 (Build 2838)
Problem description / error messages
Apache2 failed and won't restart. I got error message. When I ran Certificate rebuild (in keyhelp-toolbox: 6 -> 8), after that everything goes offline. Keyhelp admin console, and all website. Apache2 failed and I can't restart.
journalctl -xe says: The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Additional information
(e.g. recent changes to the server, excerpts from log files (/var/log/*, /var/log/keyhelp/php-error.log, etc.))
Oct 28 18:05:13 s2.web-pro.hu systemd[1]: Starting The Apache HTTP Server...
░░ Subject: A start job for unit apache2.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit apache2.service has begun execution.
░░
░░ The job identifier is 8292.
Oct 28 18:05:13 s2.web-pro.hu apachectl[8267]: Action 'start' failed.
Oct 28 18:05:13 s2.web-pro.hu apachectl[8267]: The Apache error log may have more information.
Oct 28 18:05:13 s2.web-pro.hu systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Oct 28 18:05:13 s2.web-pro.hu systemd[1]: apache2.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Oct 28 18:05:13 s2.web-pro.hu systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A start job for unit apache2.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit apache2.service has finished with a failure.
░░
░░ The job identifier is 8292 and the job result is failed.
Tobi wrote: ↑Fri 28. Oct 2022, 19:24
As it says in the error message
The Apache error log may have more information.
Only ssl:warn here.
When I commenting out vhosts config files from keyhelp.conf (/etc/apache2/keyhelp/keyhelp.conf), apache2 can be start. What wrong with that vhosts config files?
[Fri Oct 28 19:04:24.466156 2022] [suexec:notice] [pid 4746:tid 139783970155840] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Fri Oct 28 19:04:24.477534 2022] [ssl:warn] [pid 4747:tid 139783970155840] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:04:24.477559 2022] [ssl:warn] [pid 4747:tid 139783970155840] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 28 19:04:24.482194 2022] [mpm_event:notice] [pid 4747:tid 139783970155840] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Fri Oct 28 19:04:24.482222 2022] [core:notice] [pid 4747:tid 139783970155840] AH00094: Command line: '/usr/sbin/apache2'
[Fri Oct 28 19:07:01.238417 2022] [mpm_event:notice] [pid 4747:tid 139783970155840] AH00492: caught SIGWINCH, shutting down gracefully
AH00016: Configuration Failed
AH00016: Configuration Failed
AH00016: Configuration Failed
[Fri Oct 28 19:09:02.691557 2022] [ssl:warn] [pid 5422:tid 140678134578496] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:09:02.691636 2022] [ssl:warn] [pid 5422:tid 140678134578496] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:10:02.406819 2022] [ssl:warn] [pid 5490:tid 140087427358016] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:10:02.406922 2022] [ssl:warn] [pid 5490:tid 140087427358016] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:11:01.724737 2022] [ssl:warn] [pid 5549:tid 140608068373824] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:11:01.724832 2022] [ssl:warn] [pid 5549:tid 140608068373824] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:12:02.000323 2022] [ssl:warn] [pid 5625:tid 140470914428224] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:12:02.000397 2022] [ssl:warn] [pid 5625:tid 140470914428224] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:13:01.258498 2022] [ssl:warn] [pid 5686:tid 140653118446912] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:13:01.258581 2022] [ssl:warn] [pid 5686:tid 140653118446912] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:13:15.494523 2022] [ssl:warn] [pid 5710:tid 140694418468160] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:13:15.494586 2022] [ssl:warn] [pid 5710:tid 140694418468160] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:14:01.529839 2022] [ssl:warn] [pid 5779:tid 140330792140096] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:14:01.529917 2022] [ssl:warn] [pid 5779:tid 140330792140096] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:15:01.861507 2022] [ssl:warn] [pid 5873:tid 140309073247552] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:15:01.861669 2022] [ssl:warn] [pid 5873:tid 140309073247552] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:16:02.180594 2022] [ssl:warn] [pid 5946:tid 140090948906304] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:16:02.180682 2022] [ssl:warn] [pid 5946:tid 140090948906304] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:17:01.437958 2022] [ssl:warn] [pid 6007:tid 139916496170304] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:17:01.438037 2022] [ssl:warn] [pid 6007:tid 139916496170304] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:18:01.701822 2022] [ssl:warn] [pid 6083:tid 140328980282688] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:18:01.701925 2022] [ssl:warn] [pid 6083:tid 140328980282688] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:18:51.509768 2022] [ssl:warn] [pid 6106:tid 140413324549440] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:18:51.509877 2022] [ssl:warn] [pid 6106:tid 140413324549440] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:19:01.962793 2022] [ssl:warn] [pid 6153:tid 140186702871872] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:19:01.962876 2022] [ssl:warn] [pid 6153:tid 140186702871872] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:20:01.252153 2022] [ssl:warn] [pid 6224:tid 139812203576640] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:20:01.252251 2022] [ssl:warn] [pid 6224:tid 139812203576640] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:21:01.539280 2022] [ssl:warn] [pid 6296:tid 140600467995968] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:21:01.539359 2022] [ssl:warn] [pid 6296:tid 140600467995968] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:22:01.871025 2022] [ssl:warn] [pid 6370:tid 140091446705472] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:22:01.871113 2022] [ssl:warn] [pid 6370:tid 140091446705472] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:22:56.804548 2022] [ssl:warn] [pid 6412:tid 140582200843584] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:22:56.804612 2022] [ssl:warn] [pid 6412:tid 140582200843584] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:23:02.244529 2022] [ssl:warn] [pid 6456:tid 140330229468480] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:23:02.244599 2022] [ssl:warn] [pid 6456:tid 140330229468480] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:23:19.632005 2022] [ssl:warn] [pid 6485:tid 140261115301184] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:23:19.632099 2022] [ssl:warn] [pid 6485:tid 140261115301184] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:24:01.516848 2022] [ssl:warn] [pid 6549:tid 140636084346176] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:24:01.516918 2022] [ssl:warn] [pid 6549:tid 140636084346176] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:25:01.778469 2022] [ssl:warn] [pid 6615:tid 139965417274688] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:25:01.778547 2022] [ssl:warn] [pid 6615:tid 139965417274688] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
[Fri Oct 28 19:26:02.054491 2022] [ssl:warn] [pid 6685:tid 139635554159936] AH01906: webmail:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Oct 28 19:26:02.054564 2022] [ssl:warn] [pid 6685:tid 139635554159936] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
AH00016: Configuration Failed
No protocol handler was valid for the URL /index.php (scheme 'unix'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
/var/log/apache2/keyhelp/error.log
When I turn off /etc/apache2/keyhelp/*.conf includes, and only one, apache started, but got error some domain:
I got back my apache. I reinstalled apache2 and rebuild keyhelp configs, but missed all mods. This is why apache didn't started and fall back with error.
So all domains working now except one, where i got theese:
Not Found
The requested URL was not found on this server.
Apache/2.4.54 (Debian) Server at xxxxxxx.xx Port 80
Say port 80, but in network tab I requested SSL (443). This is any missconfiguration there? The domain conf looks great in /var/apache2/keyhelp/vhosts/ folder. But still not working.
Finish. So, if anyone will reinstall apache2, do these process:
Build apache config file and everthying with keyhelp-toolbox
Check all available mods end config in apache2 folder and enable it. I you not do that, you will get 500 error and wrong routing, SSL verification error and apache2 fail.