Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am struggling to enable MPM Worker

I uncommented #HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd and restarted Apache but I am receiving these error:

Starting httpd: httpd.worker: Syntax error on line 222 of /etc/httpd/conf/httpd.conf: Syntax error on line 9 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5-zts.so into server: /etc/httpd/modules/libphp5-zts.so: cannot open shared object file: No such file or directory

Any ideas what I am doing wrong?

share|improve this question
    
do you have the file /etc/httpd/modules/libphp5-zts.so –  Mike Dec 6 '11 at 2:28
add comment

1 Answer

up vote 1 down vote accepted

You need to install php-zts package:

Name        : php-zts
Version     : 5.3.8
Release     : 2.el5.art
Architecture: x86_64
Size        : 4210728
Packager    : None
Group       : Development/Languages
URL         : http://www.php.net/
Repository  : atomic
Summary     : Thread-safe PHP interpreter for use with the Apache HTTP Server
Description :
The php-zts package contains a module for use with the Apache HTTP
Server which can operate under a threaded server processing model.

and make sure that this extension exists in /etc/httpd/modules:

ls -l /etc/httpd/modules/libphp5-zts.so 
-rwxr-xr-x 1 root root 4210728 Nov  1 05:29 /etc/httpd/modules/libphp5-zts.so
share|improve this answer
    
thanks that was it! –  Maca Dec 6 '11 at 8:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.