老的php编译参数如下
 
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --enable-embed --enable-fd-setsize --with-openssl=/usr/local --with-zlib=/usr/local/zlib --with-zlib-dir=/usr/local/zlib --enable-calendar --enable-dba --enable-ftp --with-gd --with-jpeg-dir=/usr/local/jpeg-6b --with-png-dir=/usr/local/libpng --enable-gd-native-ttf --enable-gd-jis-conv --enable-mbstring --with-mysql=/usr/local/mysql --enable-embedded-mysqli --with-pdo-mysql=/usr/local/mysql --enable-soap --enable-sqlite-utf8 --enable-zip 
 
现在由于要做验证码要添加freetype支持
所以重新编译了一下
加了 --with-ttf --with-freetype-dir=/usr/local/freetype
 
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --enable-embed --enable-fd-setsize --with-openssl=/usr/local --with-zlib=/usr/local/zlib --with-zlib-dir=/usr/local/zlib --enable-calendar --enable-dba --enable-ftp --with-gd --with-jpeg-dir=/usr/local/jpeg-6b --with-png-dir=/usr/local/libpng --enable-gd-native-ttf --enable-gd-jis-conv --enable-mbstring --with-mysql=/usr/local/mysql --enable-embedded-mysqli --with-pdo-mysql=/usr/local/mysql --enable-soap --enable-sqlite-utf8 --enable-zip --with-ttf --with-freetype-dir=/usr/local/freetype
 
make && make install、重启apache。
然后查看phpinfo,显示的编译参数还和以前老的一样。
看/usr/local/apache/modules/libphp5.so的时间也是老的版本然后我去掉了--enable-embed,重新编译。
libphp5.so更新了,phpinfo里的编译参数一栏也是新的数据。
但是freetype还是不支持。 
重启apache的时候会有个warning,之前没有
[Mon May 14 16:53:08 2007] [warn] module php5_module is already loaded, skipping
     
OS是Redhat AS4, Apache是httpd-2.2.3, PHP 5.2.0.
默认系统rpm装的freetype,我觉的是不是有问题就自己编译了一个在 /usr/lcoal/freetype
 
我觉得这里有两个问题
1: --enable-embed的作用是什么? 为什么用了这个参数新的phplib就不会被更新给apache?
2:如果解决了编译问题,那如何让php支持freetype呢?我是按php手册上作的多谢各位大侠指教