Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
40
rated 0 times [  40] [ 0]  / answers: 1 / hits: 64066  / 1 Year ago, fri, may 26, 2023, 2:20:08

I upgraded to Ubuntu Server 14.04 expecting the default apache installation would use the new event MPM, but instead I find the old memory-eating prefork.



I've successfully set up event MPM in Arch Linux, but I'm failing to do so on Ubuntu. I keep getting:



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


I' ve already installed php-fpm, and configured apache2 to use it, but since the config files for apache2 are different on Ubuntu, i'm not quite sure whether i'm doing it on the right place.



Any idea on how to make PHP thread safe so I can use apache2 event-mpm? (without having to manually recompile php, of course)


More From » 14.04

 Answers
7

To disable event MPM, you can do sudo a2dismod mpm_event and after that to enable prefork, you should do sudo a2enmod mpm_prefork.



Finally restart apache:



sudo service apache2 restart

[#25767] Saturday, May 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
urnaetted

Total Points: 10
Total Questions: 113
Total Answers: 117

Location: Burundi
Member since Sat, Aug 21, 2021
3 Years ago
;