0

I have an installed version of Apache 2.4 and I am trying to install PHP7, following the instructions. However, I have hit a snag:

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

I do not want to use a multithreaded version of PHP (directly discouraged). I don't have a modules/mod_mpm_event.so library, so cannot follow these instructions. So how can I configure Apache without recompiling?

  • Use MPM prefork, httpd.apache.org/docs/2.4/mod/prefork.html. If you have it... Is this a self hosted Apache or something from a provider? – Nic3500 Nov 1 '17 at 0:18
  • Self-hosted. I'm aware I need to use prefork, but it is not clear how I change from worker to prefork short of recompiling. – Druckles Nov 2 '17 at 8:08
  • 1
    Check this link, answer by Chris Johnson is the way to go for this: serverfault.com/questions/88000/… – Nic3500 Nov 2 '17 at 10:28
  • Actually, it was JorgeeFG's answer which helped. Turns out it's a Ubuntu specific question. The .load file also indicates where the .so library is (in my case, /usr/lib/apache2/modules/. – Druckles Nov 2 '17 at 21:14
  • This isn't really a duplicate question. Although the answer is. And it's also Ubuntu specific. Can this question be filed somewhere or should it just be marked as duplicate? Should I leave an answer regardless? – Druckles Nov 2 '17 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.