Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.

You may come across this error in newer version of apache which is because the newer configurations use an event based Multi Processing Module by default. If the PHP is not compiled with threadsafe, you will need to switch to the prefork MPM, which does not use threads.

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
httpd.service: control process exited, code=exited status=1

Look for the following in the Load Modules sections of your apache configuration file :

LoadModule mpm_event_module modules/mod_mpm_event.so

And replace it with the following module :

LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
  1. Thank You!

    • Random root
    • May 18th. 2016 9:46pm

    Thanks a ton

    • Qige Zhao
    • Feb 7th. 2017 9:33pm

    You are the MAN!

    • Thanker
    • Oct 22nd. 2017 7:28pm

    Thank you MAN!!!! you finally solved my problem.

    I have been following the Arch wiki tutorial for setting up LAMP with no success but with your tip is working :)
    thank you very much

    • Iain
    • Nov 8th. 2017 9:56am

    Thank you! Been trying to pin down where this error was coming from for days!

    • Vadym
    • Nov 8th. 2017 8:37pm

    Thank you!

  1. No trackbacks yet.


+ three = 4