Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. AH00013: Pre-configuration failed

Viewed 13207

How to fix this error in Termux?

Android 9 pie

u0_a197@localhost

/d/d/c/f/u/e/apache2> apachectl start

[Mon Feb 24 10:44:37.594174 2020] [php7:crit] [pid 27013:tid 508989617480] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. AH00013: Pre-configuration failed u0_a197@localhost /d/d/c/f/u/e/apache2>

2 Answers

disable mpm_worker and enable module mpm_prefork ex: edit file httpd.conf : LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so #LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so

If you are using Ubuntu/Debian systems, you can use a2enmod and a2dismod to enable or disable an apache2 module

To disable mpm_worker:

sudo a2dismod mpm_worker

To enable mpm_prefork:

sudo a2enmod mpm_prefork

(Don't forget to restart your server)

sudo systemctl restart apache2

or

sudo service apache2 restart
Related