phpapache

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


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>


Solution

  • 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