Apache: syntax error: AH00526

User avatar
Tobi
Community Moderator
Posts: 3231
Joined: Thu 5. Jan 2017, 13:24

Re: Apache: syntax error: AH00526

Post by Tobi »

Was habt ihr nur?
Ist doch ein Thread 🤪
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
Justman10000
Posts: 217
Joined: Tue 15. Dec 2020, 16:40

Re: Apache: syntax error: AH00526

Post by Justman10000 »

LOL! Beide Beiträge kombiniert! Wie auch immer, wie löse ich dies nun?
User avatar
ShortSnow
Posts: 281
Joined: Thu 15. Nov 2018, 00:45

Re: Apache: syntax error: AH00526

Post by ShortSnow »

https://toolbox.googleapps.com/apps/dig/#A/

Wenn Du da Deine Domain eingibst. Kommt dann die IP Adresse von Deinem Server als Antwort?

Gruß Arne
User avatar
Justman10000
Posts: 217
Joined: Tue 15. Dec 2020, 16:40

Re: Apache: syntax error: AH00526

Post by Justman10000 »

Ja
User avatar
andromeda
Posts: 92
Joined: Wed 25. Nov 2020, 13:49

Re: Domain nicht verwendbar

Post by andromeda »

Justman10000 wrote: Fri 29. Jan 2021, 17:26 Nein, nicht wirklich, hier stimmt mit Let's Encrypt was nicht, bei dem anderen war es eine Datei
Vielleicht wäre ein Managed Server das bessere Produkt für dich? ;)
User avatar
Tobi
Community Moderator
Posts: 3231
Joined: Thu 5. Jan 2017, 13:24

Re: Apache: syntax error: AH00526

Post by Tobi »

Poste mal die Ausgabe von

Code: Select all


sudo netstat -tulpn | grep LISTEN

Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
OlliTheDarkness
Posts: 1868
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: Apache: syntax error: AH00526

Post by OlliTheDarkness »

ERLÖSE UNS !!!
BITTE TOBI !"!!
Setz dem Wahnsinn hier ein ENDE! :D
Mit freundlichen Grüßen
OlliTheDarkness

**************************************************************
Helden leben lange, Legenden sterben nie

:!: World Hack Organization :!:
**************************************************************
User avatar
Justman10000
Posts: 217
Joined: Tue 15. Dec 2020, 16:40

Re: Apache: syntax error: AH00526

Post by Justman10000 »

Tobi wrote: Fri 29. Jan 2021, 20:58 Poste mal die Ausgabe von

Code: Select all


sudo netstat -tulpn | grep LISTEN

tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2417/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 2417/dovecot
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 626/perl
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/init
tcp 0 0 127.0.0.1:41360 0.0.0.0:* LISTEN 12456/./sinusbot
tcp 0 0 127.0.0.1:37651 0.0.0.0:* LISTEN 4935/./sinusbot
tcp 0 0 127.0.0.1:39923 0.0.0.0:* LISTEN 14706/./sinusbot
tcp 0 0 127.0.0.1:40276 0.0.0.0:* LISTEN 12285/./sinusbot
tcp 0 0 127.0.0.1:33621 0.0.0.0:* LISTEN 11687/./sinusbot
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 463/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1829/master
tcp 0 0 127.0.0.1:12345 0.0.0.0:* LISTEN 566/opendkim
tcp 0 0 127.0.0.1:41277 0.0.0.0:* LISTEN 7970/./sinusbot
tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 2417/dovecot
tcp 0 0 127.0.0.1:33151 0.0.0.0:* LISTEN 10830/./sinusbot
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 2417/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 2417/dovecot
tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 231/postgrey --pidf
tcp 0 0 127.0.0.1:34760 0.0.0.0:* LISTEN 26695/./sinusbot
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 1190/amavisd-new (m
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 1829/master
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 750/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 1829/master
tcp6 0 0 :::110 :::* LISTEN 2417/dovecot
tcp6 0 0 :::143 :::* LISTEN 2417/dovecot
tcp6 0 0 ::1:783 :::* LISTEN 626/perl
tcp6 0 0 :::111 :::* LISTEN 1/init
tcp6 0 0 :::80 :::* LISTEN 480/apache2
tcp6 0 0 :::21 :::* LISTEN 2467/proftpd: (acce
tcp6 0 0 :::22 :::* LISTEN 463/sshd
tcp6 0 0 :::1111 :::* LISTEN 10830/./sinusbot
tcp6 0 0 :::1112 :::* LISTEN 11687/./sinusbot
tcp6 0 0 :::1113 :::* LISTEN 12285/./sinusbot
tcp6 0 0 :::1114 :::* LISTEN 4935/./sinusbot
tcp6 0 0 :::1115 :::* LISTEN 14706/./sinusbot
tcp6 0 0 :::443 :::* LISTEN 480/apache2
tcp6 0 0 :::1116 :::* LISTEN 12456/./sinusbot
tcp6 0 0 :::1117 :::* LISTEN 26695/./sinusbot
tcp6 0 0 :::1118 :::* LISTEN 7970/./sinusbot
tcp6 0 0 :::4190 :::* LISTEN 2417/dovecot
tcp6 0 0 :::993 :::* LISTEN 2417/dovecot
tcp6 0 0 :::995 :::* LISTEN 2417/dovecot
tcp6 0 0 ::1:10023 :::* LISTEN 231/postgrey --pidf
tcp6 0 0 ::1:10024 :::* LISTEN 1190/amavisd-new (m
User avatar
turbopixel
Posts: 59
Joined: Sat 18. Mar 2017, 11:22

Re: Apache: syntax error: AH00526

Post by turbopixel »

Den Apache Syntax Error wird bei mir auch angezeigt, nachdem ich ursprünglich Probleme mit Lets Encrypt und einer fehlerhaften IP6V Adresse hatte viewtopic.php?f=6&t=10285&p=27773#p27773

Code: Select all

[28-Jan-2021 16:18:14] INFO  --> All done.
[28-Jan-2021 16:18:14] INFO  --> Apache: reloadApache()
[28-Jan-2021 16:18:14] ERROR --> Apache: syntax error: AH00526: Syntax error on line 35 of /etc/apache2/keyhelp/keyhelp.conf:
SSLCertificateFile: file '/etc/ssl/keyhelp/keyhelp.pem' does not exist or is empty
Action 'configtest' failed.
The Apache error log may have more information.
[28-Jan-2021 16:18:14] ERROR --> Apache: no reload due syntax error
Die Datei existiert, die Dateirechte stimmen.
Viele Grüße
turbopixel

-> Das neue Feuerwehr Einsatzprotokoll
User avatar
Justman10000
Posts: 217
Joined: Tue 15. Dec 2020, 16:40

Re: Apache: syntax error: AH00526

Post by Justman10000 »

turbopixel wrote: Sat 30. Jan 2021, 15:42 Den Apache Syntax Error wird bei mir auch angezeigt, nachdem ich ursprünglich Probleme mit Lets Encrypt und einer fehlerhaften IP6V Adresse hatte viewtopic.php?f=6&t=10285&p=27773#p27773

Code: Select all

[28-Jan-2021 16:18:14] INFO  --> All done.
[28-Jan-2021 16:18:14] INFO  --> Apache: reloadApache()
[28-Jan-2021 16:18:14] ERROR --> Apache: syntax error: AH00526: Syntax error on line 35 of /etc/apache2/keyhelp/keyhelp.conf:
SSLCertificateFile: file '/etc/ssl/keyhelp/keyhelp.pem' does not exist or is empty
Action 'configtest' failed.
The Apache error log may have more information.
[28-Jan-2021 16:18:14] ERROR --> Apache: no reload due syntax error
Die Datei existiert, die Dateirechte stimmen.
Und was tun?
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: Apache: syntax error: AH00526

Post by Alexander »

turbopixel wrote: Sat 30. Jan 2021, 15:42 Die Datei existiert, die Dateirechte stimmen.
Die Datei "/etc/ssl/keyhelp/keyhelp.pem" ist ein Symlink auf eine Zertifikats .pem Datei. Existiert die mit dem Symlink verknüpfte Datei denn auch und hat die korrekten Rechte?
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
Justman10000
Posts: 217
Joined: Tue 15. Dec 2020, 16:40

Re: Apache: syntax error: AH00526

Post by Justman10000 »

Ich kann auf die Datei ja in keinster Weise zugreifen, da meldet das System, dass die Datei nicht existiert! Ich weiß demnach nicht, wohin der Symlink führt...
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: Apache: syntax error: AH00526

Post by Alexander »

Das lässt sich hiermit ermitteln:

http://manpages.ubuntu.com/manpages/art ... /ls.1.html

Code: Select all

ls -la
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
Justman10000
Posts: 217
Joined: Tue 15. Dec 2020, 16:40

Re: Apache: syntax error: AH00526

Post by Justman10000 »

Alexander wrote: Tue 2. Feb 2021, 13:02 Das lässt sich hiermit ermitteln:

http://manpages.ubuntu.com/manpages/art ... /ls.1.html

Code: Select all

ls -la
Hmm
total 48
drwxr-xr-x 5 root root 4096 Jan 25 15:19 .
drwxr-xr-x 5 root root 4096 Jan 19 10:35 ..
drw------- 2 keyhelp keyhelp 4096 Feb 1 14:43 files
lrwxrwxrwx 1 root root 74 Jan 24 10:35 ftp-ca.crt -> /etc/ssl/keyhelp/letsencrypt/keyhelp/vps2061266.fastwebserver.de/chain.pem
lrwxrwxrwx 1 root root 77 Jan 24 10:35 ftp.pem -> /etc/ssl/keyhelp/letsencrypt/keyhelp/vps2061266.fastwebserver.de/complete.pem
lrwxrwxrwx 1 root root 74 Jan 24 10:35 keyhelp-ca.crt -> /etc/ssl/keyhelp/letsencrypt/keyhelp/vps2061266.fastwebserver.de/chain.pem
lrwxrwxrwx 1 root root 77 Jan 24 10:35 keyhelp.pem -> /etc/ssl/keyhelp/letsencrypt/keyhelp/vps2061266.fastwebserver.de/complete.pem
drw------- 4 root root 4096 Feb 2 13:21 letsencrypt
lrwxrwxrwx 1 root root 74 Jan 24 10:35 mail-ca.crt -> /etc/ssl/keyhelp/letsencrypt/keyhelp/vps2061266.fastwebserver.de/chain.pem
lrwxrwxrwx 1 root root 77 Jan 24 10:35 mail.pem -> /etc/ssl/keyhelp/letsencrypt/keyhelp/vps2061266.fastwebserver.de/complete.pem
drw------- 2 root root 4096 Feb 1 14:43 pem
-rw------- 1 root root 2358 Jan 24 10:29 root-ca.crt
lrwxrwxrwx 1 root root 37 Jan 24 10:35 webmail-ca.crt -> /etc/ssl/keyhelp/files/default-ca.crt
lrwxrwxrwx 1 root root 32 Jan 24 10:35 webmail.pem -> /etc/ssl/keyhelp/pem/default.pem
r
Ich glaube, dies erklärt das ganze... Oder?
KeyHelp - Apache- Syntax error- AH00526.jpg
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: Apache: syntax error: AH00526

Post by Alexander »

1) Erreichbarkeit mittels Default-Zertifikat wiederherstellen:

Hierzu musst du die Symlinks löschen und neu anlegen. Anbei ein vorher / nachher Bild.

Vorher:
vorher.png
Nachher:
nachher.png
Bevor die nächste Frage kommt, das geht so: https://linuxize.com/post/how-to-create ... n-command/

2) Apache neu starten

3) Einmal Löschen:

Code: Select all

/etc/ssl/keyhelp/letsencrypt/keyhelp/vps2061266.fastwebserver.de/

4) Einmal im KeyHelp zu einem anderen Zertifikat (z.B. default) für alle Serverdienste außer Webmail schalten
(Adminbereich -> SSL/TLS-Zertifikate -> Serverdienste absichern)

4.1) Mindestens 1 Minute warten

4.2) Wieder im selben Bildschirm auf Let's Encrypt stellen.
Nach 1-2 Minute sollten die Symlinks dann wieder stimmen und das Zertifikat bezogen worden sein.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Locked