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>
3
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
anda2dismod
to enable or disable an apache2 moduleTo disable mpm_worker:
To enable mpm_prefork:
(Don’t forget to restart your server)
or
Make sure mod_php is not installed.
It is the oldest and slowest possible configuration. It was suitable for version 2.2 and older, and requires the use of the prefork mpm.
You can check if you’re server is using mod_php by looking in output of phpinfo()
Correct/multi-threaded configuration will show Fast CGI: