httpd.worker - errors?

4 posts / 0 new
Last post
#1 Mon, 01/30/2012 - 17:42
kappler0

httpd.worker - errors?

So trying to get worker MTM up, I uncommented this line:

HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd

And in /etc/httpd/conf.d/php.conf it shows: (which i believe should be correct..)

<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>
[root@host01 /]#  /usr/sbin/httpd.worker -l
Compiled in modules:
  core.c
  worker.c
  http_core.c
  mod_so.c
[root@host01 /]#
[root@host01 etc]# ps auxw | grep http
root     22629  0.0  0.0 103292   892 pts/0    R+   18:37   0:00 grep http
[root@host01 etc]#

This is the error when restarting Apache:

Starting httpd: httpd.worker: Syntax error on line 221 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

So i looked and the libphp5-zts.so is just not there... Any idea how / where to get this from?

Mon, 01/30/2012 - 17:56
kappler0

Update:

Apparently the libphp5-zts.so isn't installed by default (in centos 6 anyway)

So for reference:

yum search zts locates this:

php-zts 5.3.3-3.el6_2.5 Thread-safe PHP interpreter for use with the Apache HTTP Server

yum install php-zts service httpd restart

All working now with worker.c

Scott Kappler

Mon, 01/30/2012 - 17:57
kappler0
[root@host01 modules]# ps auxw | grep http
root     23135  0.0  0.0 250520 13624 ?        Ss   18:51   0:00 /usr/sbin/httpd.worker
apache   23137  0.0  0.0 246068  4288 ?        S    18:51   0:00 /usr/sbin/httpd.worker
apache   23139  0.0  0.0 594780 10832 ?        Sl   18:51   0:00 /usr/sbin/httpd.worker
apache   23142  0.0  0.0 594780 10828 ?        Sl   18:51   0:00 /usr/sbin/httpd.worker
apache   23154  0.0  0.0 594780 10832 ?        Sl   18:51   0:00 /usr/sbin/httpd.worker
root     23299  0.0  0.0 103292   908 pts/0    S+   18:55   0:00 grep http
[root@host01 modules]#

Scott Kappler

Mon, 01/30/2012 - 22:28
andreychek

Glad to hear you got it working, thanks for letting us know how you did it!

Topic locked