yum install libxml2-devel openssl-devel bzip2-devel libcurl-devel gd-devel libmcrypt-devel
./configure --prefix=/opt/php-5.5 --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-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-kerberos --with-gettext --with-gd --with-jpeg-dir=/usr/lib/ --enable-fpm
wget http://pecl.php.net/get/memcache-2.2.4.tgz tar -zxvf memcached-2.2.4.tgz /opt/php-5.5/bin/phpize && ./configure --with-php-config=/opt/php-5.5/bin/php-config --enable-memcache make make test cp /usr/src/memcache-2.2.4/modules/memcache.so /opt/php-5.5/lib/php/extensions/no-debug-non-zts-20121212/ echo "extension=memcache.so" >> /opt/php-5.5/lib/php.ini
tar xzvf eio.tgz && cd eio-* ./configure --with-eio --with-php-config=/opt/php-5.5/bin/php-config make cp eio.so /opt/php-5.5/lib/php/extensions/no-debug-non-zts-20121212/ vim /opt/php-5.5/lib/php.ini (extension=eio)
./configure --prefix=/opt/php-5.6 --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-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-imap --with-imap-ssl --with-kerberos --with-gettext --with-gd --with-jpeg-dir=/usr/lib/ --enable-fpm
cp /usr/src/php/php-5.5.24/sapi/fpm/php-fpm.conf /etc/php55-fpm/php-fpm.conf
cp /usr/src/php/php-5.6.8/sapi/fpm/php-fpm.conf /etc/php55-fpm/php-fpm.conf
[root@forDelete system]# cat php55-fpm.service [Unit] Description=The PHP FastCGI Process Manager After=syslog.target network.target [Service] Type=simple PIDFile=${prefix}/var/run/php-fpm.pid ExecStart=/opt/php-5.5/sbin/php-fpm --nodaemonize --fpm-config /etc/php55-fpm/php-fpm.conf ExecReload=/bin/kill -USR2 $MAINPID [Install] WantedBy=multi-user.target
[root@forDelete system]# cat php56-fpm.service [Unit] Description=The PHP FastCGI Process Manager After=syslog.target network.target [Service] Type=simple PIDFile=${prefix}/var/run/php-fpm.pid ExecStart=/opt/php-5.6/sbin/php-fpm --nodaemonize --fpm-config /etc/php56-fpm/php-fpm.conf ExecReload=/bin/kill -USR2 $MAINPID [Install] WantedBy=multi-user.target
server { listen 80; server_name alexlinux.lan; root /usr/share/nginx/html/alexlinux.lan; location / { index index.php; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9055; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } server { listen 80; server_name alexlinux2.lan; root /usr/share/nginx/html/alexlinux2.lan; location / { index index.php; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9056; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }