我正在努力启用 MPM Worker
我取消注释#HTTPD=/usr/sbin/httpd.worker
并/etc/sysconfig/httpd
重新启动了 Apache,但收到以下错误:
正在启动 httpd:httpd.worker:第 222 行语法错误
/etc/httpd/conf/httpd.conf
第 9 行语法错误/etc/httpd/conf.d/php.conf
:无法加载/etc/httpd/modules/libphp5-zts.so
到服务器::/etc/httpd/modules/libphp5-zts.so
无法打开共享对象文件:没有此文件或目录
知道我做错了什么吗?
答案1
您需要安装php-zts
包:
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.
并确保此扩展存在于/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