apache not restarting

Locked
tom83
Posts: 64
Joined: Thu 22. Aug 2019, 21:33

apache not restarting

Post by tom83 »

Hi,
My Keyhelp panel is down. And I can't restart apache:

Code: Select all

root@server:~# systemctl restart apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
Here error:

Code: Select all

-- Unit apache2.service has begun starting up.
Dec 09 16:05:01 server.windows2019-update.tk apachectl[2808]: AH00526: Syntax error on line 35 of /etc/a
Dec 09 16:05:01 server.windows2019-update.tk apachectl[2808]: SSLCertificateFile: file '/etc/ssl/keyhelp
Dec 09 16:05:01 server.windows2019-update.tk apachectl[2808]: Action 'start' failed.
Dec 09 16:05:01 server.windows2019-update.tk apachectl[2808]: The Apache error log may have more informa
Dec 09 16:05:01 server.windows2019-update.tk systemd[1]: apache2.service: Control process exited, code=e
Dec 09 16:05:01 server.windows2019-update.tk systemd[1]: apache2.service: Failed with result 'exit-code'
Dec 09 16:05:01 server.windows2019-update.tk systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has failed.
-- 
-- The result is RESULT.
Dec 09 16:05:01 server.windows2019-update.tk sudo[2803]: pam_unix(sudo:session): session closed for user
Dec 09 16:05:01 server.windows2019-update.tk sudo[2836]:     root : TTY=unknown ; PWD=/root ; USER=root 
Dec 09 16:05:01 server.windows2019-update.tk sudo[2836]: pam_unix(sudo:session): session opened for user
Dec 09 16:05:01 server.windows2019-update.tk sudo[2836]: pam_unix(sudo:session): session closed for user
Dec 09 16:05:02 server.windows2019-update.tk CRON[2785]: pam_unix(cron:session): session closed for user
~
Seems to be something related to SSL, not sure. Any ideas?
I'm using cloudflare to manage DNS.
User avatar
Jolinar
Community Moderator
Posts: 3560
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: apache not restarting

Post by Jolinar »

Code: Select all

See "systemctl status apache2.service" and "journalctl -xe" for details.
?
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
tom83
Posts: 64
Joined: Thu 22. Aug 2019, 21:33

Re: apache not restarting

Post by tom83 »

Here:

Code: Select all

● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Mon 2019-12-09 17:01:12 -03; 32s ago
  Process: 2686 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Dec 09 17:01:12 server.windows2019-update.tk systemd[1]: Starting The Apache HTTP Server...
Dec 09 17:01:12 server.windows2019-update.tk apachectl[2686]: AH00526: Syntax error on line 35 of /etc/apache2/keyhelp/keyhelp.conf
Dec 09 17:01:12 server.windows2019-update.tk apachectl[2686]: SSLCertificateFile takes one argument, SSL Server Certificate file
Dec 09 17:01:12 server.windows2019-update.tk apachectl[2686]: Action 'start' failed.
Dec 09 17:01:12 server.windows2019-update.tk apachectl[2686]: The Apache error log may have more information.
Dec 09 17:01:12 server.windows2019-update.tk systemd[1]: apache2.service: Control process exited, code=exited status=1
Dec 09 17:01:12 server.windows2019-update.tk systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 09 17:01:12 server.windows2019-update.tk systemd[1]: Failed to start The Apache HTTP Server.
~
And here:

Code: Select all

root@server:~# journalctl -xe
-- Unit apache2.service has begun starting up.
Dec 09 17:03:01 server.windows2019-update.tk apachectl[2800]: AH00526: Syntax error on line 35 of /etc/apache2/keyhelp/keyhelp.c
Dec 09 17:03:01 server.windows2019-update.tk apachectl[2800]: SSLCertificateFile takes one argument, SSL Server Certificate file
Dec 09 17:03:01 server.windows2019-update.tk apachectl[2800]: Action 'start' failed.
Dec 09 17:03:01 server.windows2019-update.tk apachectl[2800]: The Apache error log may have more information.
Dec 09 17:03:01 server.windows2019-update.tk systemd[1]: apache2.service: Control process exited, code=exited status=1
Dec 09 17:03:01 server.windows2019-update.tk systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 09 17:03:01 server.windows2019-update.tk systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has failed.
-- 
-- The result is RESULT.
Dec 09 17:03:01 server.windows2019-update.tk sudo[2795]: pam_unix(sudo:session): session closed for user root
Dec 09 17:03:01 server.windows2019-update.tk sudo[2829]:     root : TTY=unknown ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/serv
Dec 09 17:03:01 server.windows2019-update.tk sudo[2829]: pam_unix(sudo:session): session opened for user root by (uid=0)
Dec 09 17:03:01 server.windows2019-update.tk sudo[2829]: pam_unix(sudo:session): session closed for user root
Dec 09 17:03:01 server.windows2019-update.tk CRON[2777]: pam_unix(cron:session): session closed for user root
Dec 09 17:03:10 server.windows2019-update.tk postfix/qmgr[2292]: 1FDE45FE17: from=<double-bounce@server.windows2019-update.tk>, 
Dec 09 17:03:10 server.windows2019-update.tk postfix/qmgr[2292]: 805EA5FE22: from=<double-bounce@server.windows2019-update.tk>, 
Dec 09 17:03:10 server.windows2019-update.tk dovecot[2846]: lda(root@server.windows2019-update.tk): Error: userdb lookup: connec
Dec 09 17:03:10 server.windows2019-update.tk dovecot[2846]: lda: Fatal: Internal error occurred. Refer to server log for more in
Dec 09 17:03:10 server.windows2019-update.tk dovecot[2848]: lda(root@server.windows2019-update.tk): Error: userdb lookup: connec
Dec 09 17:03:10 server.windows2019-update.tk dovecot[2848]: lda: Fatal: Internal error occurred. Refer to server log for more in
Dec 09 17:03:10 server.windows2019-update.tk postfix/pipe[2845]: 1FDE45FE17: to=<root@server.windows2019-update.tk>, orig_to=<po
Dec 09 17:03:10 server.windows2019-update.tk postfix/pipe[2847]: 805EA5FE22: to=<root@server.windows2019-update.tk>, orig_to=<po
lines 2124-2151/2151 (END)
derFu
Posts: 99
Joined: Sat 28. Apr 2018, 18:46

Re: apache not restarting

Post by derFu »

The Apache error log may have more information
And what does /etc/apache2/error.log say?
tom83
Posts: 64
Joined: Thu 22. Aug 2019, 21:33

Re: apache not restarting

Post by tom83 »

I don't have this log file (it's empty):

Code: Select all

root@server:/etc/apache2# ls
apache2.conf       conf-available  envvars  magic           mods-enabled  sites-available  suexec
apache2.conf.save  conf-enabled    keyhelp  mods-available  ports.conf    sites-enabled
root@server:/etc/apache2# vi /etc/apache2/error.log
root@server:/etc/apache2# 
derFu
Posts: 99
Joined: Sat 28. Apr 2018, 18:46

Re: apache not restarting

Post by derFu »

tom83 wrote: Mon 9. Dec 2019, 21:26 I don't have this log file (it's empty):

Code: Select all

root@server:/etc/apache2# ls
apache2.conf       conf-available  envvars  magic           mods-enabled  sites-available  suexec
apache2.conf.save  conf-enabled    keyhelp  mods-available  ports.conf    sites-enabled
root@server:/etc/apache2# vi /etc/apache2/error.log
root@server:/etc/apache2# 
Sorry, my fault, it's /var/log/apache2/error.log
tom83
Posts: 64
Joined: Thu 22. Aug 2019, 21:33

Re: apache not restarting

Post by tom83 »

Empty log file:

root@server:~# cat /var/log/apache2/error.log
root@server:~#
User avatar
Tobi
Community Moderator
Posts: 2812
Joined: Thu 5. Jan 2017, 13:24

Re: apache not restarting

Post by Tobi »

The first error occurs here:
AH00526: Syntax error on line 35 of /etc/apache2/keyhelp/keyhelp.conf

Please check this file.
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Locked