apahce 的 worker.c 模式
来源:互联网 发布:番摊软件下载 编辑:程序博客网 时间:2024/06/08 12:34
由于最近公司开发新项目,要求多线程并发,不得已只能配置apache从prefork模式转向worker模式。
原本以为就是换换运行文件,把httpd.work改名为httpd 替换掉默认文件就行了。(默认的httpd是httpd.prefork)
但突然就发现系统不支持mysql了,后来发现,只要phpinfo()里查到,预编译命令里加了--without-XXX的组合,即不接受动态加载。
所以不得已只能重新手动编译PHP,但是apahce启动的时候出现错误:
Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Pre-configuration failed Action 'configtest' failed.
这个错误提示是,apache是多线程模式(我已经用httpd.work替换了默认的httpd),而php是非线程模式必须重新编译。
后来发现预编译的时候需要加入预编译项 --enable-maintainer-zts ,不能加入 --with-openssl
阅读全文
0 0
- apahce 的 worker.c 模式
- worker模式的探究
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- Apache的prefork模式和worker模式
- 自己总结的面向对象
- 基于射频CC2520 实现的ZigBee 通信设计
- (源码阅读)源码分析之AsyncTask
- Android共享元素场景切换动画的实现
- 1432: [ZJOI2009]Function
- apahce 的 worker.c 模式
- firewalld
- C# MessageBox用法实例
- 【心灵鸡汤】大神,我有个问题,帮我看看
- Qt学习之各种控件
- 我的学习之路_第六章_Data,正则
- 京东快报轮播公告的实现
- C语言格式化读写文件
- 51NOD1281 山峰和旗子 【二分】