Error de reinicio/inicio de Apache2

Error de reinicio/inicio de Apache2

Estoy intentando reiniciar Apache2, pero cada vez que ejecuto el comando, sucede esto:

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

Ahora, cuando escribo "systemctl status apache2.service", imprime esto:

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Mon 2016-09-26 14:40:35 CEST; 1min 33s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2183 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 2490 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Sep 26 14:40:35 Asterisk apache2[2490]:  * The apache2 configtest failed.
Sep 26 14:40:35 Asterisk apache2[2490]: Output of config test was:
Sep 26 14:40:35 Asterisk apache2[2490]: [Mon Sep 26 14:40:35.250008 2016] [:crit] [pid 2501:tid 140245312874368] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
Sep 26 14:40:35 Asterisk apache2[2490]: AH00013: Pre-configuration failed
Sep 26 14:40:35 Asterisk apache2[2490]: Action 'configtest' failed.
Sep 26 14:40:35 Asterisk apache2[2490]: The Apache error log may have more information.
Sep 26 14:40:35 Asterisk systemd[1]: apache2.service: Control process exited, code=exited status=1
Sep 26 14:40:35 Asterisk systemd[1]: Failed to start LSB: Apache2 web server.
Sep 26 14:40:35 Asterisk systemd[1]: apache2.service: Unit entered failed state.
Sep 26 14:40:35 Asterisk systemd[1]: apache2.service: Failed with result 'exit-code'.

Mi registro de errores (lo que creo que es mi registro de errores) http://hastebin.com/axalecoves.rb

Estoy usando un servidor Ubuntu, ejecutando 16.04.1. Si alguno de ustedes sabe lo que estoy haciendo mal, por favor ayúdenme. Esto sucede cada vez que ejecuto el sudo a2enmod php7.0comando. Cuando lo haga, a2dismod php7.0puedo empezar de nuevo sin problemas... Como dije, si alguien sabe algo sobre esto, por favor ayúdeme :)

Respuesta1

Como dijo porWikiArchlinux:

Necesitas reemplazar mpm_event_modulecon mpm_prefork_module.
Abra el archivo /etc/httpd/conf/httpd.confy edítelo de la siguiente manera:

#LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

Luego reinicie el servicio Apache.

información relacionada