Page 2 of 3

Re: Apache: syntax error: AH00526

Posted: Fri 29. Jan 2021, 18:06
by Tobi
Was habt ihr nur?
Ist doch ein Thread 🤪

Re: Apache: syntax error: AH00526

Posted: Fri 29. Jan 2021, 18:24
by Justman10000
LOL! Beide Beiträge kombiniert! Wie auch immer, wie löse ich dies nun?

Re: Apache: syntax error: AH00526

Posted: Fri 29. Jan 2021, 20:12
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

Re: Apache: syntax error: AH00526

Posted: Fri 29. Jan 2021, 20:31
by Justman10000
Ja

Re: Domain nicht verwendbar

Posted: Fri 29. Jan 2021, 20:33
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? ;)

Re: Apache: syntax error: AH00526

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

Code: Select all


sudo netstat -tulpn | grep LISTEN


Re: Apache: syntax error: AH00526

Posted: Fri 29. Jan 2021, 22:41
by OlliTheDarkness
ERLĂ–SE UNS !!!
BITTE TOBI !"!!
Setz dem Wahnsinn hier ein ENDE! :D

Re: Apache: syntax error: AH00526

Posted: Sat 30. Jan 2021, 11:54
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

Re: Apache: syntax error: AH00526

Posted: Sat 30. Jan 2021, 15:42
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.

Re: Apache: syntax error: AH00526

Posted: Sat 30. Jan 2021, 20:14
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?

Re: Apache: syntax error: AH00526

Posted: Mon 1. Feb 2021, 09:25
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?

Re: Apache: syntax error: AH00526

Posted: Tue 2. Feb 2021, 12:16
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...

Re: Apache: syntax error: AH00526

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

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

Code: Select all

ls -la

Re: Apache: syntax error: AH00526

Posted: Tue 2. Feb 2021, 13:29
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

Re: Apache: syntax error: AH00526

Posted: Tue 2. Feb 2021, 15:50
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.