There is the need to test the server to a set of old Ecshop;
So the version can not be too high;
Scheme:
Through Nginx to pass the request to different versions of CGI processing, but encountered some trouble, compile and install the time will not get through. (It's gone now, but I think there's definitely a problem, that's the scope of the extension.) is the extended support via Yum install not a global? Global positive impact performance)
Step 1: Download the source package
Sep 2: Parameters to prepare for compilation
Reference:
./Configure--prefix=/usr/local/php.5.3 --with-pdo-Pgsql--with-zlib-dir--with-freetype-dir--enable-mbstring--with-libxml-dir=/usr--enable-Soap--enable-Calendar--with-Curl--with-MCrypt--with-zlib--with-GD--with-zlib--enable-Sockets--enable-Sysvsem--enable-Sysvshm--enable-Pcntl--enable-Mbregex--with-Mhash--enable-Zip--with-pcre-Regex--with-mysql=/usr/local/MySQL--with-pdo-MySQL--with-mysqli--with-png-dir=/usr--enable-gd-native-TTF--with-OpenSSL--with-fpm-user=Nginx--with-fpm-group=Nginx--with-libdir=lib64--enable-FTP--with-jpeg-dir=/usr/lib/--enable-fpm
Then make && make install
Step 3 Copy the INI file to the specified directory;
Installing PHP SAPI module:cgi
Installing PHP CGI binary:/usr/local/php.5.3/bin/
Installing PHP CLI binary:/usr/local/php.5.3/bin/
Installing PHP CLI man page:/usr/local/php.5.3/man/man1/
Installing Build Environment:/usr/local/php.5.3/lib/php/build/
Installing header files:/usr/local/php.5.3/include/php/
Installing helper Programs:/usr/local/php.5.3/bin/
Program:phpize
Program:php-config
Installing man pages:/usr/local/php.5.3/man/man1/
Page:phpize.1
Page:php-config.1
Installing PEAR Environment:/usr/local/php.5.3/lib/php/
[PEAR] archive_tar-installed:1.3.12
[PEAR] console_getopt-installed:1.3.1
[PEAR] structures_graph-installed:1.0.4
[PEAR] xml_util-installed:1.2.3
[PEAR] pear-installed:1.9.5
Wrote PEAR system config file at:/usr/local/php.5.3/etc/pear.conf
Want to add:/usr/local/php.5.3/lib/phpto your php.ini include_path
/usr/local/php5.2.5/php-5.3.29/build/shtool install-c Ext/phar/phar.phar/usr/local/php.5.3/bin
Ln-s-f/usr/local/php.5.3/bin/phar.phar/usr/local/php.5.3/bin/phar
Installing PDO headers:/usr/local/php.5.3/include/php/ext/pdo/
Step 4 starts a CGI process
/usr/local/bin/spawn-fcgi-a 127.0.0.1-p 9001-c 5-f/usr/local/php.5.3/bin/php-cgi (9001 ports, of course, you can also modify the config file Specify port)
Step 5 premise you have spawn-fcgi no words to compile the installation;
Step 6 Configure Nginx virtual machine fastcgi_pass 127.0.0.1:9001; Port Please note
Multiple Versions of PHP RUN on SERVER