Apache2 padł

Masz problemy z siecią bądź internetem? Zapytaj tu
B0ruwa
Posty: 1
Rejestracja: 30 października 2021, 19:46

Apache2 padł

Post 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 :)
Awatar użytkownika
Yampress
Administrator
Posty: 6365
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Re: Apache2 padł

Post 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?
Awatar użytkownika
LordRuthwen
Moderator
Posty: 2302
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

Re: Apache2 padł

Post autor: LordRuthwen »

Jak chcesz mieć całe linie, to użyj przełącznika -l
fnmirk
Senior Member
Posty: 8273
Rejestracja: 03 grudnia 2007, 06:37

Re: Apache2 padł

Post autor: fnmirk »

Ewentualnie użyć opcji: json-pretty np.:

Kod: Zaznacz cały

 journalctl -xe -o json-pretty
ODPOWIEDZ