skip to Main Content

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


  1. 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

    Login or Signup to reply.
  2. 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
    
    Login or Signup to reply.
  3. Make sure mod_php is not installed.

    sudo yum remove mod_php -y
    

    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()

    mod_php used

    Correct/multi-threaded configuration will show Fast CGI:

    FPM/FastCGI used

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search