« heartbeat Remote Denial of Service | Main | awstats 日志分析在跨月时的一个处理小技巧 »
August 30, 2006
关于 apache php 的编译和包管理注意事项
|
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。 http://windtear.net/archives/2006/08/30/001070.html http://windtear.net/archives/2006/08/30/001070.html 关于 apache php 的编译和包管理注意事项 apache + php 编译 静态(不推荐) php: ./configure --with-apache=../apache_1.3.37 ...... apache: ./configure --activate-module=src/modules/php4/libphp4.a ...... httpd -l Compiled-in modules: http_core.c ...... mod_php4.c 动态(推荐) php: ./configure --with-apxs=/data/apache/bin/apxs ...... ./configure --with-apxs2=/data/apache/bin/apxs ...... httpd -l Compiled-in modules: http_core.c mod_so.c LoadModule php4_module modules/libphp4.so 做软件包(如rpm)的话 首先 build机器环境先做好 然后 spec要考虑全面 apache 有版本之分 1.3 2.0 2.2 apache 2 要考虑 mpm prefork 和 worker PHP 要考虑 modules 的安装目录和 apache 吻合 |
Posted by windtear at August 30, 2006 11:56 PM
Trackback Pings
TrackBack URL for this entry:
http://cgi.windtear.net/cgi-bin/wt-tb.cgi/1070
Comments
静态编译和.so效率上有区别吗?
Posted by: xjb at September 1, 2006 4:55 PM
推荐和不推荐 能从性能、效率等方面分析一下吗?
Posted by: BQ at September 3, 2006 5:24 PM
我这里的角度是:
可管理性
在性能影响可以忽略的情况下 灵活性越高 可管理性越好
在拥有几十数百甚至数千台的情况下 为了简化部署和考虑通用性等 做出的推荐不推荐的提示
性能上肯定静态编译效率要高一点点的 不过不是模块化的思想 不灵活 万一想有个改变就得全部重编 呵呵
性能上的影响可以用apache带ab打一下 应该最多有百分之几的差异 不会太大
Posted by: windtear at September 3, 2006 6:01 PM
en 分别改了并测试了一下大概有1%的性能差异 很不明显
动态的话灵活许多 学到了 thanks.
Posted by: BQ at September 4, 2006 11:49 AM