Apache: syntax error: AH00526

User avatar
Justman10000
Posts: 190
Joined: Tue 15. Dec 2020, 16:40

Apache: syntax error: AH00526

Post by Justman10000 »

Guten Tag, ich wollte gerade eine Subdomain zu meinem Hostname hinzufügen, doch dies funktioniert nicht!
[25-Jan-2021 09:40:02] INFO --> load tasks... 1 found
[25-Jan-2021 09:40:02] INFO --> task type IDs: 600
[25-Jan-2021 09:40:02] INFO --> Apache: applyAllConfigChanges()
[25-Jan-2021 09:40:02] INFO --> Apache: checkDirectories()
[25-Jan-2021 09:40:02] INFO --> Apache: cleanAll()
[25-Jan-2021 09:40:02] INFO --> Apache: cleanVhosts()
[25-Jan-2021 09:40:02] INFO --> Apache: cleanCustomVhosts()
[25-Jan-2021 09:40:02] INFO --> Apache: cleanPhpFpmPools()
[25-Jan-2021 09:40:02] INFO --> Apache: cleanHtpasswd()
[25-Jan-2021 09:40:02] INFO --> Apache: getUserIdsWithModifiedDomains()
[25-Jan-2021 09:40:02] INFO --> Apache: we will now apply configs changes of user id "3"
[25-Jan-2021 09:40:02] INFO --> Apache: config data loaded for user id "3" ("goldsucht")
[25-Jan-2021 09:40:02] INFO --> load domain "goldsucht.vps2061266.fastwebserver.de"
[25-Jan-2021 09:40:02] INFO --> domain without ssl option
[25-Jan-2021 09:40:02] INFO --> Apache: add vhost container for domain "goldsucht.vps2061266.fastwebserver.de"
[25-Jan-2021 09:40:02] INFO --> Apache: save config to "/etc/apache2/keyhelp/vhosts/goldsucht.conf"
[25-Jan-2021 09:40:02] INFO --> PHP-FPM: add php-fpm pool "[goldsucht]" for domain "goldsucht.vps2061266.fastwebserver.de"
[25-Jan-2021 09:40:02] INFO --> save config to "/etc/php/7.3/fpm/keyhelp_pool/goldsucht.conf"
[25-Jan-2021 09:40:02] INFO --> Apache: subdomain catch-all updated
[25-Jan-2021 09:40:02] INFO --> Apache: reloadApache()
[25-Jan-2021 09:40:02] 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.
[25-Jan-2021 09:40:02] ERROR --> Apache: no reload due syntax error
[25-Jan-2021 09:40:02] ERROR --> Apache: failed to reload
User avatar
Tobi
Community Moderator
Posts: 2831
Joined: Thu 5. Jan 2017, 13:24

Re: Apache: syntax error: AH00526

Post by Tobi »

Anscheinend fehlt bei dir die Datei '/etc/ssl/keyhelp/keyhelp.pem' oder sie ist fehlerhaft.

Das könnte hiermit zusammen hängen:
viewtopic.php?p=27629#p27629
Gruß,
Tobi


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

Re: Apache: syntax error: AH00526

Post by Justman10000 »

Also, da ist sie! Auch nicht leer
KeyHelp - Keyhelp.pem.jpg
User avatar
Tobi
Community Moderator
Posts: 2831
Joined: Thu 5. Jan 2017, 13:24

Re: Apache: syntax error: AH00526

Post by Tobi »

Die Dateirechte dieser Datei stimmen nicht.
Ich denke das müsste eine 600 sein.
Aktuell ist es wohl eine 777.
Gruß,
Tobi


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

Re: Apache: syntax error: AH00526

Post by Justman10000 »

Ist das System so pingelig?
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: Apache: syntax error: AH00526

Post by OlliTheDarkness »

Justman10000 wrote: Mon 25. Jan 2021, 17:53 Ist das System so pingelig?
Ja, bei sicherheitsrelevanten Bereichen absolutes muss (!) Verhalten des Apachen.
Mit freundlichen Grüßen
OlliTheDarkness

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

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

Re: Apache: syntax error: AH00526

Post by Justman10000 »

Tobi wrote: Mon 25. Jan 2021, 13:50 Die Dateirechte dieser Datei stimmen nicht.
Ich denke das müsste eine 600 sein.
Aktuell ist es wohl eine 777.
Ähm...
KeyHelp - Keyhelp.pem (2).jpg
User avatar
Tobi
Community Moderator
Posts: 2831
Joined: Thu 5. Jan 2017, 13:24

Re: Apache: syntax error: AH00526

Post by Tobi »

Diese Anleitung gilt für jede Linux-Variante
https://wiki.ubuntuusers.de/chmod/

Ich hab nochmal genauer hingesehen.
Die Dateien habe ja alle 777.

Das ist definitiv nicht richtig.
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
andromeda
Posts: 83
Joined: Wed 25. Nov 2020, 13:49

Re: Apache: syntax error: AH00526

Post by andromeda »

Justman10000 wrote: Mon 25. Jan 2021, 18:10
Tobi wrote: Mon 25. Jan 2021, 13:50 Die Dateirechte dieser Datei stimmen nicht.
Ich denke das müsste eine 600 sein.
Aktuell ist es wohl eine 777.
Ähm...

KeyHelp - Keyhelp.pem (2).jpg
Dann versuchs mal mit SSH, mit SFTP kann man nicht richtig debuggen... (unpraktisch, etc.)
User avatar
Tobi
Community Moderator
Posts: 2831
Joined: Thu 5. Jan 2017, 13:24

Re: Apache: syntax error: AH00526

Post by Tobi »

Tobi wrote: Mon 25. Jan 2021, 18:34 Das ist definitiv nicht richtig.
Muss mich selber korrigieren.
Habe eben auf einem Server nachgeschaut.
Auch bei mir sind die Rechte auf 777.
Daran kann es also nicht liegen.

Reminder@me
Erst gugge, dann schwätze 😂
Gruß,
Tobi


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

Domain nicht verwendbar

Post by Justman10000 »

Guten Tag, ich habe ein Problem (mal wieder🙄)! Wenn ich Domains hinzufüge, meckert die LOG folgendes:
[29-Jan-2021 17:05:02] INFO --> load tasks... 2 found
[29-Jan-2021 17:05:02] INFO --> task type IDs: 500, 600
[29-Jan-2021 17:05:02] INFO --> Bind: writeConfig()
[29-Jan-2021 17:05:02] INFO --> Bind: checkDirectory()
[29-Jan-2021 17:05:02] INFO --> Bind: directory "/etc/bind/keyhelp_domains/" already exists
[29-Jan-2021 17:05:02] INFO --> Bind: 2 nameservers found
[29-Jan-2021 17:05:02] INFO --> Bind: 3 ips found
[29-Jan-2021 17:05:02] INFO --> Bind: read/generate dkim for domain "proxygames.eu"
[29-Jan-2021 17:05:02] INFO --> Bind: generate zone file for domain "proxygames.eu"
[29-Jan-2021 17:05:02] INFO --> Bind: write zone file for domain "proxygames.eu"
[29-Jan-2021 17:05:02] INFO --> Bind: clean-up bind
[29-Jan-2021 17:05:02] INFO --> Bind: clean-up dkim
[29-Jan-2021 17:05:03] INFO --> Bind: generateMainConfiguration()
[29-Jan-2021 17:05:03] INFO --> Bind: write config file "named.conf.keyhelp"
[29-Jan-2021 17:05:03] INFO --> Bind: checkSyntax()
[29-Jan-2021 17:05:03] INFO --> Bind: syntax ok
[29-Jan-2021 17:05:03] INFO --> Bind: reload bind config
[29-Jan-2021 17:05:03] INFO --> Apache: applyAllConfigChanges()
[29-Jan-2021 17:05:03] INFO --> Apache: checkDirectories()
[29-Jan-2021 17:05:03] INFO --> Apache: cleanAll()
[29-Jan-2021 17:05:03] INFO --> Apache: cleanVhosts()
[29-Jan-2021 17:05:03] INFO --> Apache: cleanCustomVhosts()
[29-Jan-2021 17:05:03] INFO --> Apache: cleanPhpFpmPools()
[29-Jan-2021 17:05:03] INFO --> Apache: cleanHtpasswd()
[29-Jan-2021 17:05:03] INFO --> Apache: getUserIdsWithModifiedDomains()
[29-Jan-2021 17:05:03] INFO --> Apache: we will now apply configs changes of user id "2"
[29-Jan-2021 17:05:03] INFO --> Apache: config data loaded for user id "2" ("proxygames")
[29-Jan-2021 17:05:03] INFO --> load domain "proxygames.eu"
[29-Jan-2021 17:05:03] INFO --> domain uses lets encrypt - check if certs are already available
[29-Jan-2021 17:05:03] INFO --> lets encrypt cert not available, we request it and rewrite vhost later on
[29-Jan-2021 17:05:03] INFO --> load domain "www.proxygames.eu"
[29-Jan-2021 17:05:03] INFO --> domain uses lets encrypt - check if certs are already available
[29-Jan-2021 17:05:03] INFO --> lets encrypt cert not available, we request it and rewrite vhost later on
[29-Jan-2021 17:05:03] INFO --> Apache: add vhost container for domain "proxygames.eu"
[29-Jan-2021 17:05:03] INFO --> Apache: domain uses lets encrypt for first time - mark user config for rewrite
[29-Jan-2021 17:05:03] INFO --> Apache: add vhost container for domain "www.proxygames.eu"
[29-Jan-2021 17:05:03] INFO --> Apache: domain uses lets encrypt for first time - mark user config for rewrite
[29-Jan-2021 17:05:03] INFO --> Apache: save config to "/etc/apache2/keyhelp/vhosts/proxygames.conf"
[29-Jan-2021 17:05:03] INFO --> PHP-FPM: add php-fpm pool "[proxygames]" for domain "proxygames.eu"
[29-Jan-2021 17:05:03] INFO --> save config to "/etc/php/7.3/fpm/keyhelp_pool/proxygames.conf"
[29-Jan-2021 17:05:03] INFO --> PHP-FPM: add php-fpm pool "[proxygames]" for domain "www.proxygames.eu"
[29-Jan-2021 17:05:03] INFO --> save config to "/etc/php/7.3/fpm/keyhelp_pool/proxygames.conf"
[29-Jan-2021 17:05:03] INFO --> Apache: subdomain catch-all updated
[29-Jan-2021 17:05:03] INFO --> Apache: reloadApache()
[29-Jan-2021 17:05:03] 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.
[29-Jan-2021 17:05:03] ERROR --> Apache: no reload due syntax error
[29-Jan-2021 17:05:03] ERROR --> Apache: failed to reload
[29-Jan-2021 17:05:03] INFO --> Apache: request lets encrypt cert
[29-Jan-2021 17:05:03] INFO --> Apache: request for domain "proxygames.eu"
[29-Jan-2021 17:05:03] INFO --> Using certificate authority: "https://acme-v02.api.letsencrypt.org/" (LIVE).
[29-Jan-2021 17:05:03] INFO --> Getting endpoint URLs.
[29-Jan-2021 17:05:04] INFO --> Account "proxygames" not registered yet.
[29-Jan-2021 17:05:04] INFO --> Creating a new account.
[29-Jan-2021 17:05:04] INFO --> Generate account keys.
[29-Jan-2021 17:05:05] INFO --> Sending signed request to "https://acme-v02.api.letsencrypt.org/acme/new-acct".
[29-Jan-2021 17:05:07] INFO --> Requesting Key ID.
[29-Jan-2021 17:05:07] INFO --> Sending signed request to "https://acme-v02.api.letsencrypt.org/acme/new-acct".
[29-Jan-2021 17:05:08] INFO --> Start certificate generation.
[29-Jan-2021 17:05:08] INFO --> Token stored at: /home/keyhelp/www/.well-known/acme-challenge/local-check-60143234e44f49.87300645
[29-Jan-2021 17:05:08] INFO --> URL: http://proxygames.eu/.well-known/acme-c ... 9.87300645 | HTTP code: 404 | HTTP body (first 100 chars): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head>
[29-Jan-2021 17:05:08] ERROR --> Apache: a Let's Encrypt error occurred: Local resolving checks failed for domain "proxygames.eu". Please ensure that your domain is locally resolvable!
[29-Jan-2021 17:05:08] INFO --> Apache: request for domain "www.proxygames.eu"
[29-Jan-2021 17:05:08] INFO --> Using certificate authority: "https://acme-v02.api.letsencrypt.org/" (LIVE).
[29-Jan-2021 17:05:08] INFO --> Getting endpoint URLs.
[29-Jan-2021 17:05:09] INFO --> Account "proxygames" already registered. Continue.
[29-Jan-2021 17:05:09] INFO --> Requesting Key ID.
[29-Jan-2021 17:05:09] INFO --> Sending signed request to "https://acme-v02.api.letsencrypt.org/acme/new-acct".
[29-Jan-2021 17:05:12] INFO --> Start certificate generation.
[29-Jan-2021 17:05:12] INFO --> Token stored at: /home/keyhelp/www/.well-known/acme-challenge/local-check-60143238a6c523.44336230
[29-Jan-2021 17:05:12] INFO --> URL: http://www.proxygames.eu/.well-known/ac ... 3.44336230 | HTTP code: 404 | HTTP body (first 100 chars): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head>
[29-Jan-2021 17:05:12] ERROR --> Apache: a Let's Encrypt error occurred: Local resolving checks failed for domain "www.proxygames.eu". Please ensure that your domain is locally resolvable!
User avatar
mhagge
Community Moderator
Posts: 490
Joined: Wed 8. Aug 2018, 15:19

Re: Domain nicht verwendbar

Post by mhagge »

Das ist doch dassselbe Problem wie hier: viewtopic.php?f=5&t=10278 ?
User avatar
Justman10000
Posts: 190
Joined: Tue 15. Dec 2020, 16:40

Re: Domain nicht verwendbar

Post by Justman10000 »

Nein, nicht wirklich, hier stimmt mit Let's Encrypt was nicht, bei dem anderen war es eine Datei
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: Domain nicht verwendbar

Post by OlliTheDarkness »

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
Es ist der selbe Fehler , lese den log mal richtig ;)
Mit freundlichen Grüßen
OlliTheDarkness

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

:!: World Hack Organization :!:
**************************************************************
User avatar
mhagge
Community Moderator
Posts: 490
Joined: Wed 8. Aug 2018, 15:19

Re: Domain nicht verwendbar

Post by mhagge »

Die entscheidenden Zeilen

Code: Select all

[29-Jan-2021 17:05:03] 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.
[29-Jan-2021 17:05:03] ERROR --> Apache: no reload due syntax error
[29-Jan-2021 17:05:03] ERROR --> Apache: failed to reload
Damit kennt der Apache die Domain nicht, und insofern kann LetsEncrypt auch keine Überprüfung derselbigen durchführen. Das Letsencrypt-Problem ist nur ein Folgefehler davon
Locked