Strona 1 z 1

Apache2 padł

: 30 października 2021, 19:57
autor: B0ruwa
Witam,
Jestem zielony w sprawach konfiguracji serwera i popełniłem błąd, którego nie potrafię naprawić.
Mam postawioną stronę www na VPS i zainstalowanego tam WordPressa, chciałem zwiększyć limit wysyłania zdjęć, ponieważ maksymalny rozmiar było 2M. Posłużyłem się poradnikiem z internetu i edytowałem plik .htaccess. Po edycji i chęci zresetowaniu apache2 wyskoczył komunikat:

Kod: Zaznacz cały

Job for apache2.service failed because the control process exited with error code.See "systemctl status apache2.service" and "journalctl -xe" for details. jak naprawic?
Zaraz po tym moja strona padła.
Sprawdziłem błąd w putty i wypluło to:

Kod: Zaznacz cały

● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:
   Active: failed (Result: exit-code) since Sat 2021-10-30 19:38:02 CEST; 27s ag
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 2331 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILU

Oct 30 19:38:02 WWW systemd[1]: Starting The Apache HTTP Server...
Oct 30 19:38:02 WWW apachectl[2331]: AH00526: Syntax error on line 6 of /etc/apa
Oct 30 19:38:02 WWW apachectl[2331]: SSLCertificateFile: file '/etc/letsencrypt/
Oct 30 19:38:02 WWW apachectl[2331]: Action 'start' failed.
Oct 30 19:38:02 WWW apachectl[2331]: The Apache error log may have more informat
Oct 30 19:38:02 WWW systemd[1]: apache2.service: Control process exited, code=ex
Oct 30 19:38:02 WWW systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 30 19:38:02 WWW systemd[1]: Failed to start The Apache HTTP Server.
Szukałem rozwiązania tego problemu, lecz nigdzie nie znalazłem skutecznego rozwiązania.
Proszę o pomoc :)

Re: Apache2 padł

: 31 października 2021, 08:13
autor: Yampress
Rozwiązanie zapewne jest w logach. Sprawdz logi apache

Kolejna sprawa przeciez w tym komunikacie od razu jest tez informacja czemu nie chce sie uruchomić apache
Oct 30 19:38:02 WWW apachectl[2331]: AH00526: Syntax error on line 6 of /etc/apa

synax error on line 6 ? - co to jest?

Re: Apache2 padł

: 01 listopada 2021, 15:18
autor: LordRuthwen
Jak chcesz mieć całe linie, to użyj przełącznika -l

Re: Apache2 padł

: 04 listopada 2021, 13:45
autor: fnmirk
Ewentualnie użyć opcji: json-pretty np.:

Kod: Zaznacz cały

 journalctl -xe -o json-pretty