apache2.0.47+php-4.3.2 setup guide~~~
听说apache2的性能不错...加上自己的服务器压力挺大的..所以就花时间升级了我的server
apache编译代码:
[code:1:046e9b7bc3]
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
./configure --prefix=/usr/local/httpd2.0.47 --enable-so
--with-mpm=worker
[/code:1:046e9b7bc3]
看php.net的文档..说用worker模块,对繁忙的站点有好处..所以我就用了.

php的编译代码:
[code:1:046e9b7bc3]
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
./configure
--with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/httpd2.0.47/bin/apxs
--disable-debug
--enable-inline-optimization -q
--with-gd
--with-zlib-dir=/usr/lib
--with-jpeg-dir=/usr/lib
--with-png-dir=/usr/lib
--with-ttf=/usr/include/freetype1
--with-freetype-dir=/usr/include/freetype2
--enable-gd-native-ttf
--enable-thread-safety \[/code:1:046e9b7bc3]
这里用了一个php的试验参数--enable-thread-safety,目的是对应apache的worker模块(参考php.net的apache2的安装手册)
php为apache2服务(添加worker模块后)有一个参数不能用了.就是--with-mm

apache2有个毛病默认的语言不是中文.所以浏览中文页面会乱码..所以要做小修改
conf/httpd.conf文件,
查找 AddDefaultCharset ISO-8859-1
改为AddDefaultCharset GB2312
btw:其他的一下apache1.3下的php安全参数都可以用,Zend Optimizer 也正常..

phpinfo
http://be10.ods.org/test.php