apache2.service failed because the control process exited with error code

Domande e richieste di un principiante alle prime armi con Ubuntu e il mondo GNU/Linux in generale. Per domande specifiche, utilizzare le altre sezioni.
Regole della sezione
In questa sezione possono inserire nuove discussioni solo coloro che fanno parte del livello "Prode Principiante" e che non hanno superato i 100 messaggi, tutti gli altri possono comunque rispondere regolarmente. Se si fa parte di questo livello e si è registrati al forum prima del 24 aprile 2012, data del passaggio al nuovo forum, consultare questa discussione.

Immagine Come usare UbuntuPrimi passi su Ubuntu Immagine Amministrazione del sistemaComandi di baseInstallare programmiLog di sistemaRiga di comandoSudo
seomiotico
Prode Principiante
Messaggi: 4
Iscrizione: martedì 25 ottobre 2022, 9:08
Contatti:

apache2.service failed because the control process exited with error code

Messaggio da seomiotico »

Buongiorno a tutti

su Ubuntu Linux 22.04 il servizio apache2 si é fermato e non riparte.

per ambo i comandi segnalo report che ne esce:

Codice: Seleziona tutto

systemctl status apache2.service

Codice: Seleziona tutto

× apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2022-11-22 15:41:19 UTC; 3min 1s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 1877932 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 15ms

Starting The Apache HTTP Server...
AH00534: apache2: Configuration error: No MPM loaded.
Action 'start' failed.
The Apache error log may have more information.
apache2.service: Control process exited, code=exited, status=1/FAILURE
apache2.service: Failed with result 'exit-code'.
Failed to start The Apache HTTP Server.

Codice: Seleziona tutto

journalctl -xeu apache2.service

Codice: Seleziona tutto

A start job for unit apache2.service has begun execution.

The job identifier is 297447.
AH00534: apache2: Configuration error: No MPM loaded.
Action 'start' failed.
The Apache error log may have more information.
apache2.service: Control process exited, code=exited, status=1/FAILURE
Subject: Unit process exited
Defined-By: systemd
Support: http://www.ubuntu.com/support

An ExecStart= process belonging to unit apache2.service has exited.

The process' exit code is 'exited' and its exit status is 1.
apache2.service: Failed with result 'exit-code'.
Subject: Unit failed
Defined-By: systemd
Support: http://www.ubuntu.com/support

The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Failed to start The Apache HTTP Server.
Subject: A start job for unit apache2.service has failed
Defined-By: systemd
Support: http://www.ubuntu.com/support

A start job for unit apache2.service has finished with a failure.

The job identifier is 297447 and the job result is failed.
Starting The Apache HTTP Server...
Subject: A start job for unit apache2.service has begun execution
Defined-By: systemd
Support: http://www.ubuntu.com/support

A start job for unit apache2.service has begun execution.

The job identifier is 297530.
AH00534: apache2: Configuration error: No MPM loaded.
Action 'start' failed.
The Apache error log may have more information.
apache2.service: Control process exited, code=exited, status=1/FAILURE
Subject: Unit process exited
Defined-By: systemd
Support: http://www.ubuntu.com/support

An ExecStart= process belonging to unit apache2.service has exited.

The process' exit code is 'exited' and its exit status is 1.
apache2.service: Failed with result 'exit-code'.
Subject: Unit failed
Defined-By: systemd
Support: http://www.ubuntu.com/support

The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Failed to start The Apache HTTP Server.
Subject: A start job for unit apache2.service has failed
Defined-By: systemd
Support: http://www.ubuntu.com/support

A start job for unit apache2.service has finished with a failure.

The job identifier is 297530 and the job result is failed.
Qualcuno può suggerire una qualche soluzione per fare ripartire il server?

Grazie in anticipo.
Avatar utente
Filoteo
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1322
Iscrizione: venerdì 28 agosto 2015, 9:38
Desktop: Gnome
Distribuzione: Arch Linux

Re: apache2.service failed because the control process exited with error code

Messaggio da Filoteo »

The Apache error log may have more information.
seomiotico
Prode Principiante
Messaggi: 4
Iscrizione: martedì 25 ottobre 2022, 9:08
Contatti:

Re: apache2.service failed because the control process exited with error code

Messaggio da seomiotico »

Codice: Seleziona tutto

[Mon Nov 21 00:00:06.986602 2022] [mpm_event:notice] [pid 845:tid 139666938759040] AH00489: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Nov 21 00:00:06.986693 2022] [core:notice] [pid 845:tid 139666938759040] AH00094: Command line: '/usr/sbin/apache2'
[Mon Nov 21 15:41:11.931131 2022] [mpm_event:notice] [pid 845:tid 139666938759040] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Nov 21 15:41:13.518313 2022] [mpm_event:notice] [pid 845:tid 139666938759040] AH00489: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Nov 21 15:41:13.518366 2022] [core:notice] [pid 845:tid 139666938759040] AH00094: Command line: '/usr/sbin/apache2'
[Mon Nov 21 16:03:45.032209 2022] [mpm_event:notice] [pid 845:tid 139666938759040] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Nov 21 16:03:45.536368 2022] [mpm_event:notice] [pid 845:tid 139666938759040] AH00489: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Nov 21 16:03:45.536404 2022] [core:notice] [pid 845:tid 139666938759040] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 22 08:54:28.448282 2022] [mpm_event:notice] [pid 845:tid 139666938759040] AH00491: caught SIGTERM, shutting down
Può essere utile? Grazie.
Avatar utente
Filoteo
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1322
Iscrizione: venerdì 28 agosto 2015, 9:38
Desktop: Gnome
Distribuzione: Arch Linux

Re: apache2.service failed because the control process exited with error code

Messaggio da Filoteo »

Potresti aver bisogno di questo pacchetto https://packages.ubuntu.com/jammy/libapache2-mpm-itk
seomiotico
Prode Principiante
Messaggi: 4
Iscrizione: martedì 25 ottobre 2022, 9:08
Contatti:

Re: apache2.service failed because the control process exited with error code

Messaggio da seomiotico »

Codice: Seleziona tutto

libapache2-mpm-itk is already the newest version (2.4.7-04-1)
non si ravvisa altra anomalia per caso? grazie.
Avatar utente
Filoteo
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1322
Iscrizione: venerdì 28 agosto 2015, 9:38
Desktop: Gnome
Distribuzione: Arch Linux

Re: apache2.service failed because the control process exited with error code

Messaggio da Filoteo »

Prova a abilitare il modulo con sudo a2enmod mpm_event
seomiotico
Prode Principiante
Messaggi: 4
Iscrizione: martedì 25 ottobre 2022, 9:08
Contatti:

Re: apache2.service failed because the control process exited with error code

Messaggio da seomiotico »

Codice: Seleziona tutto

Considering conflict mpm_worker for mpm_event:
ERROR: Module mpm_worker is enabled - cannot proceed due to conflicts. It needto be disabled first!
Considering conflict mpm_prefork for mpm_event:
Siamo sulla strada giusta?
Scrivi risposta

Ritorna a “Dilemmi del principiante”

Chi c’è in linea

Visualizzano questa sezione: Bing [Bot] e 4 ospiti