The original string
./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs--enable-zip--enable-calendar-- With-mysql=/usr/local/mysql--with-pdo-mysql=/usr/local/mysql--with-iconv=/usr/local/libiconv--with-curl=/usr/ Local/curl--with-gd=/usr/local/gd2--with-jpeg-dir=/usr/local/jpeg6--with-png-dir=/usr/local/libpng--with-zlib- -with-freetype-dir=/usr/local/freetype--enable-soap--enable-sockets--with-mcrypt=/usr/local/libmcrypt-- With-mhash=/usr/local/mhash--with-zlib--enable-track-vars--enable-ftp--with-openssl--enable-dba=shared-- With-libxml-dir--with-gettext--enable-gd-native-ttf--with-openssl
Modified string:
./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs--enable-zip--enable-calendar-- With-mysql=/usr/local/mysql--with-pdo-mysql=/usr/local/mysql--with-curl--with-gd=/usr/local/gd2--with-png-- With-zlib--with-freetype--enable-soap--enable-sockets--with-mcrypt=/usr/local/libmcrypt--with-mhash--with-zlib --enable-track-vars--enable-ftp--with-openssl--enable-dba=shared--with-libxml-dir--with-gettext-- Enable-gd-native-ttf--with-openssl--enable-mbstring
I put 5.3.2 on top of it.
Php5.2 's
./configure--prefix=/usr/local/php--with-freetype-dir=/usr/local/freetype--with-apxs2=/usr/local/apache2/bin/ APXS--with-config-file-path=/usr/local/php/etc--with-mysql=/usr/local/mysql--WITH-GD=/USR/LOCAL/GD-- With-jpeg-dir=/usr/local/jpeg7--with-png-dir=/usr/local/png--with-bz2--with-mcrypt--with-mhash--with-curl=/usr /local/curl--enable-soap--enable-gd-native-ttf--enable-mbstring--disable-cgi--disable-cli--enable-soap-- Enable-sockets
#./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs (Note this compilation parameter OK?) Corresponding to the above httpd installation directory is/usr/local/apache2)
Compile PHP 5.4