On Sat, 29 Jul 2017 15:25:17 +0200, alex
<1j94...@lnx159sneakemail.com.invalid> wrote:
>$ sudo service apache2 restart
Il tuo sistema ha un gestore di init che funziona, o usa systemd?
>Job for apache2.service failed because the control process exited with
>error code. See "systemctl status apache2.service" and "journalctl -xe"
>for details.
Ah, systemd. Okay, allora è molto semplice. Systemctl è il programma per
darsi arie da sistemista; journalctl è usato per fare scorrere via dallo
schermo scritte imbarazzanti.
A te serve di indagare cosa è successo ad Apache, che è tutt'altra cosa,
e quindi ti serve invece:
apache2ctl configtest per vedere cosa succede ad Apache
/var/log/apache2/*.log dove ci sono le informazioni bòne
apache2ctl start per far partire Apache
===================
>$ systemctl status apache2.service
>? apache2.service - LSB: Apache2 web server
"Stai consultando il log di Apache. No, sai... magari non lo sapevi"
> Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
"Klaatu barada nikto"
> Drop-In: /lib/systemd/system/apache2.service.d
> +-apache2-systemd.conf
> Active: *failed* (Result: exit-code) since sab 2017-07-29 15:12:38
>CEST; 4min 43s ago
"C'è stato un errore"
> Docs: man:systemd-sysv-generator(8)
"Ti può interessare la seguente lettura, che parla d'altro"
> Process: 8617 ExecStop=/etc/init.d/apache2 stop (code=exited,
>status=0/SUCCESS)
"Il processo si è arrestato. Ma si è arrestato proprio bene, eh!"
> Process: 7319 ExecReload=/etc/init.d/apache2 reload (code=exited,
>status=0/SUCCESS)
"Si è provato a ricaricarlo. Sai una sega te: con Windows funziona."
> Process: 12033 ExecStart=/etc/init.d/apache2 start (code=exited,
>status=1/FAILURE)
"L'avvio, invece, non ha funzionato. Ma sono dettagli. Il resto va."
>$ sudo journalctl -xe
>le ultime righe...
>lug 29 15:12:38 comex apache2[12033]: The Apache error log may have more
>information.
"Eeeeh! Qui bisognerebbe sentire uno che se ne intende!"
>lug 29 15:12:38 comex systemd[1]: apache2.service: Control process
>exited, code=exited status=1
"C'è stato un errore."
>lug 29 15:12:38 comex systemd[1]: *Failed to start LSB*: Apache2 web server.
>-- Subject: L'unità apache2.service è fallita
"C'è stato un errore."
BWAHAHAHAHAHAHAHAHA ma come gli vengono?
>--
>-- L'unità apache2.service è fallita.
"C'è stato un errore."
Oh, ma sia chiaro. Sono io che sto rosicando dall'invidia di non riuscire,
da quell'esauriente "code=exited status=1", a capire ogniòsa, come farebbe
un vero system(d)ista.
Leonardo
--
A terrible beauty is born.
- W. B. Yeats, Easter 1916