php:

 ./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-config-file-path=/usr/local/lib –with-mysql=/usr  –with-pdo-mysql –with-gettext –enable-calendar –with-curl –enable-mbstring  –with-gd –enable-gd-native-ttf –with-zlib –with-png-dir=/usr –with-jpeg-dir=/usr –with-freetype-dir=/usr –enable-sockets

make clean

make  &&  make install

apache:
 ./configure –prefix=/usr/local/apache2 –enable-modules=so –enable-rewrite

make clean

make  &&  make install

Published in Linux

No Responses to “sles10.1下编译php5.3.6和apache2.2.17”

Leave a Reply

请输入算式结果(看不清请点击图片)
(必须)