Live Chat suport Host.MD
Update/Upgrade Plesk 11 to 12.5 Linux and install php7 on centos 5 64bit.
Posted by Dumitru . on 29 June 2017 03:43 PM

The scope: Update/Upgrade Plesk 11 to 12.5 Linux and install php7 on centos 5 64bit Virtuozzo Container!

//Plesk Upgrade from version 11 to 12.5.30 using the plesk-installer

#wget --no-check-certificate
#chmod +x ./plesk-installer
#./plesk-installer --all-versions

# plesk version
Product version: 12.5.30 Update #67
Update date: 2017/06/21 20:19
Build date: 2016/06/08 10:00
OS version: CentOS 5.9
Revision: 344620
Architecture: 64-bit
Wrapper version: 1.2

#cat /etc/issue
CentOS release 5.9 (Final)

#yum info openssl

Installed Packages
Name : openssl
Arch : i686
Version : 0.9.8e
Release : 40.el5_11
// If the version is older use yum update to update the openssl because for php7 we will need it updated.
// (configure: error: OpenSSL version 1.0.1 or greater required. )

#yum update openssl
# openssl version
//OpenSSL 1.0.1g 7 Apr 2014
#mv /usr/bin/openssl /root/ (backup the old vesion)
#ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl (link new one) May be an server reboot will be required, in my case it was required.

// Download the tar.gz

#wget -O openssl-1.0.1g.tar.gz
#tar -zxf openssl-1.0.1g.tar.gz
#cd openssl-1.0.1g
#./config --prefix=/usr/local --openssldir=/usr/local/openssl
#make test
#make install

#cd /usr/local/src/
#mkdir php7020
#gunzip php-7.0.20.tar.gz
#tar -xf php-7.0.20.tar
#cd php-7.0.20/

#yum update gcc

//Required, if no gcc and make, install them and after all was done remove them from production server.
// [2017-05-03 05:23 UTC]
//gcc version 4.1.2 ?? That compiler is over 10 years old. You are probably going to need to add -std=c99 to your build flags to get it to
//work on any modern codebase, or for heaven's sake, upgrade to a compiler from this decade. (

#./buildconf --force

#./configure --prefix=/usr/local/php7020 --with-config-file-path=/usr/local/php7020/etc --with-config-file-scan-dir=/usr/local/php7020/etc/conf.d --enable-bcmath --with-bz2 --with-curl --enable-filter --enable-fpm --with-gd --enable-gd-native-ttf --with-freetype-dir --with-jpeg-dir --with-png-dir --enable-intl --enable-mbstring --with-mcrypt --enable-mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-pdo-sqlite --disable-phpdbg --disable-phpdbg-webhelper --enable-opcache --with-openssl=/usr/local/ssl/ --enable-simplexml --with-sqlite3 --enable-xmlreader --enable-xmlwriter --enable-zip --with-zlib


#CFLAGS='-Wall -Wextra -std=c99' make clean
#CFLAGS='-Wall -Wextra -std=c99' make
#CFLAGS='-Wall -Wextra -std=c99' make test
#CFLAGS='-Wall -Wextra -std=c99' make install

#cp php.ini-development /usr/local/php7020/php.ini

// Register php-handler in plesk: (Set the -path flag and -phpini flag to meet your setup)

#/usr/local/psa/bin/php_handler --add -displayname php-7.0.2 -path /usr/local/php7020/bin/php-cgi -phpini /usr/local/php7020/php.ini -type fastcgi -id php70-fastcgi

#/usr/local/psa/bin/php_handler --add -displayname php-7.0.2 -path /usr/local/php7020/bin/php-cgi -clipath /usr/local/php7020/bin/php -phpini /usr/local/php7020/php.ini -type fastcgi -id php70-fastcgi

// to view the php-handler list :

# /usr/local/psa/bin/php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom: status:
php70-fastcgi php-7.0.2 7.0.20 7.0 fastcgi /usr/local/php7020/bin/php-cgi /usr/local/php7020/bin/php /usr/local/php7020/php.ini true enabled


 i105^pimgpsh_fullsize_distr.png (35.63 KB)
 i106^pimgpsh_fullsize_distr.png (31.18 KB)
 i107^pimgpsh_fullsize_distr.png (91.76 KB)
(2 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name: