Topic: php54 + httpd 246 - mpm event and thread safe issue
Hello,
I'm trying to create RPMs for Centos 6 (for the first time).
1. For apache, I used the spec included in the official tarball (2.4.6.tar.bz2)
All is ok, apache rpms can be installed and apache can be launched.
by default, here is our conf :
apachectl -V
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
2. For php54 (5.4.22), I tried to create rpm from the remi php54.spec but it seems to require a version of libicu-devel > 50, and this version is not available on Centos. It also ensure than current apache use prefork MPM :
apachectl -V | grep -q 'threaded:.*yes' && exit 1
I also tried with the php54.spec from iuscommunity-pkg, they don't require the libicu-devel version and the type of mpm used by apache.
In the 2 cases (after the creation/installation of php54 rpms), I found that php can't be loaded if apache is on mpm-event type.
Error : "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP."
Is there a reason ? Why event can't be used ? how to do if it's possible to permit the use of mpm-event ?
Many thanks for your support
CEDJAR