Bug 24666 - Apache refuse to start if you choose mpm_worker_module or mpm_event_module (Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.)
Summary: Apache refuse to start if you choose mpm_worker_module or mpm_event_module (A...
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: PHP Stack Maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-14 15:52 CEST by Yann Ciret
Modified: 2019-04-15 19:57 CEST (History)
3 users (show)

See Also:
Source RPM: php-5.6.40-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Yann Ciret 2019-04-14 15:52:25 CEST
Description of problem:
Apache refuse to start if you choose mpm_worker_module or mpm_event_module in /etc/httpd/conf/modules.d/00_mpm.conf file.
Error message is: Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.

Same error occurs in cauldron.


Version-Release number of selected component (if applicable):
php 5.6.40-1

How reproducible:


Steps to Reproduce:
1. Edit /etc/httpd/conf/modules.d/00_mpm.conf file
2. Comment the line LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
3. Uncomment the line LoadModule mpm_event_module modules/mod_mpm_event.so
4. Restart apache
Yann Ciret 2019-04-14 16:20:21 CEST

CC: (none) => mageia

Comment 1 Marja Van Waes 2019-04-14 17:18:01 CEST
Assinging to the php stack maintainers.

Assignee: bugsquad => php
Summary: Apache refuse to start if you choose mpm_worker_module or mpm_event_module => Apache refuse to start if you choose mpm_worker_module or mpm_event_module (Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.)
CC: (none) => mageia, marja11

Comment 2 Marc Krämer 2019-04-14 21:47:42 CEST
@Yann: it is best NOT to use precompiled apache module for php. You should prefer using php-fpm.

You can also read the official faq for this topic:
https://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
You can read this thread too:
https://stackoverflow.com/questions/681081/is-php-thread-safe
Comment 3 Marc Krämer 2019-04-15 19:57:12 CEST
since php is not thread safe, we will not compile the module for threaded apache.

Resolution: (none) => WONTFIX
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.