Apache/HTTP/MPM/Event: Unterschied zwischen den Versionen

Aus Foxwiki
Die Seite wurde neu angelegt: „Could not detect the PHP and Apache configuration * because exec is disabled or apachectl is not working as expected. Please note that * PHP can only be used with the MPM_PREFORK module * PHP-FPM can only be used with the MPM_EVENT module # a2enmod mpm_event Considering conflict mpm_worker for mpm_event: Considering conflict mpm_prefork for mpm_event: ERROR: Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disable…“
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
{{DISPLAYTITLE:mpm_event}}
Could not detect the PHP and Apache configuration  
Could not detect the PHP and Apache configuration  
* because exec is disabled or apachectl is not working as expected.  
* because exec is disabled or apachectl is not working as expected.  
Zeile 27: Zeile 29:
  #  a2enmod php7.2
  #  a2enmod php7.2
  # systemctl restart apache2
  # systemctl restart apache2
[[Kategorie:Apache]]
{{DEFAULTSORT:mpm_event}}

Version vom 21. Dezember 2022, 12:19 Uhr


Could not detect the PHP and Apache configuration

  • because exec is disabled or apachectl is not working as expected.

Please note that

  • PHP can only be used with the MPM_PREFORK module
  • PHP-FPM can only be used with the MPM_EVENT module
# a2enmod mpm_event
Considering conflict mpm_worker for mpm_event:
Considering conflict mpm_prefork for mpm_event:
ERROR: Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disabled first!
mpm_event
# a2dismod mpm_event

Module mpm_event disabled. To activate the new configuration, you need to run:

 systemctl restart apache2
# a2enmod mpm_prefork
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Enabling module mpm_prefork.

To activate the new configuration, you need to run:

 systemctl restart apache2
#  a2enmod php7.2
# systemctl restart apache2