Upgrade php 5.6 to version 5.6.29

Started by Neo2SHYAlien, January 05, 2017, 06:40:51 AM

Previous topic - Next topic

Neo2SHYAlien

CWP use php 5.6.16 which is more than 1 year old - released on 01 Oct 2015. Update is quite easy. Edit file /usr/local/src/php-5.6.sh like this :

#version=5.6.14
version=5.6.29
phpsource="http://de1.php.net/distributions/php-$version.tar.bz2"
#phpsource="http://dl1.centos-webpanel.com/files/php/selector/php-$version.tar.bz2"

I used DE mirror because my server is located in Germany, but feel free to use any other near to you.

After that install new php version with:
sh /usr/local/src/php-5.6.sh
I highly suggest CWP team to update php version - there is a lot CVE fixes between 5.6.14 and 5.6.29.
"Would you tell me, please, which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't much care where–" said Alice.
"Then it doesn't matter which way you go," said the Cat.
Neo2SHYAlien's Blog

Sandeep

php versions are regularly updated in cwp

Neo2SHYAlien

Quote from: Sandeep on January 05, 2017, 07:02:07 AM
php versions are regularly updated in cwp

What is regularly because the version in the switcher is 5.6.14 ?
"Would you tell me, please, which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't much care where–" said Alice.
"Then it doesn't matter which way you go," said the Cat.
Neo2SHYAlien's Blog

Sandeep

Quote from: Neo2SHYAlien on January 05, 2017, 07:10:31 AM
Quote from: Sandeep on January 05, 2017, 07:02:07 AM
php versions are regularly updated in cwp

What is regularly because the version in the switcher is 5.6.14 ?
what cwp version you're using ?

Neo2SHYAlien

Quote from: Sandeep on January 06, 2017, 04:06:19 PM
what cwp version you're using ?

CWP version: 0.9.8.132 with auto updates enabled :)
"Would you tell me, please, which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't much care where–" said Alice.
"Then it doesn't matter which way you go," said the Cat.
Neo2SHYAlien's Blog

Sandeep

use this commands to build the php :)


mkdir -p /usr/local/php-5-6
cd /usr/local/php-5-6
wget http://php.net/distributions/php-5.6.29.tar.gz
tar zxvf php-5.6.29.tar.gz
cd php-5.6.29
./configure --with-zlib --enable-soap --enable-exif --with-config-file-path=/usr/local/php --with-config-file-scan-dir=/usr/local/php/php.d --enable-phar --enable-bcmath --enable-calendar --with-curl --with-iconv --with-mysql --with-mysqli --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-mcrypt --with-gettext --with-xsl --with-xmlrpc --with-pdo-mysql=mysqlnd --enable-posix --enable-ftp --with-openssl --enable-mbstring --with-kerberos --with-xsl --with-bz2 --enable-sockets --enable-zip --with-gd --with-jpeg-dir --enable-gd-native-ttf --with-freetype-dir --with-pcre-regex --libdir=/usr/lib64 --with-mysql-sock=/var/lib/mysql/mysql.sock
make && make install
[code]

Neo2SHYAlien

Maybe I wasn't clear enough and misled you. This version is installed as alternative version via the switcher, not as default php version.
"Would you tell me, please, which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't much care where–" said Alice.
"Then it doesn't matter which way you go," said the Cat.
Neo2SHYAlien's Blog

VPREATR

Does anyone have an update for the latest version of CWP, it seems in the latest version, the file /usr/local/src/php-5.6.sh doesn't exist any longer and I need PHP 5.6.30 in my switcher, rather than 5.6.14.

That or if anyone has resolved on how to upgrade the switcher version from 5.6.14 to 5.6.30 in the latest version of CWP, please reply..

Thank you.

Neo2SHYAlien

#8
Quote from: VPREATR on March 08, 2017, 07:53:32 AM
Does anyone have an update for the latest version of CWP, it seems in the latest version, the file /usr/local/src/php-5.6.sh doesn't exist any longer and I need PHP 5.6.30 in my switcher, rather than 5.6.14.

That or if anyone has resolved on how to upgrade the switcher version from 5.6.14 to 5.6.30 in the latest version of CWP, please reply..

Thank you.

I'm still waiting for upgrade scripts for the new version. For older  0.9.8.153 version this fix works fine, before few days I upgrade my php to 5.6.30 :)

p.s After first compilation CWP create needed scripts under /usr/local/src/ ;)
p.s2 but for some reason CWP remove shell scripts here is a link for the original script from 0.9.8.189  CWP
"Would you tell me, please, which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't much care where–" said Alice.
"Then it doesn't matter which way you go," said the Cat.
Neo2SHYAlien's Blog

Administrator

soon there will be released scripts for centos 6 cwp version 153 upgrade and after that upgrade you will be able to install any php version via new friendly php switcher.

VPREATR

I'm currently using CWP7pro.admin (latest version); will this upgrade apply to CWP7?

Thanks!

Quote from: Administrator on March 08, 2017, 08:28:53 AM
soon there will be released scripts for centos 6 cwp version 153 upgrade and after that upgrade you will be able to install any php version via new friendly php switcher.

VPREATR

Neo2SHYAlien:
Thank you the link, I was able to update my switcher version of PHP from 5.6.14 to 5.6.30, in addition, compile modules for memcache, opcache and imagemagick; I have to run each additional on separate builds by using modified scripts, it's a kludge, but it works, if it could only be streamlined, that would be a plus.

Speaking of the PHP module memcache, unfortunately I was not able to compile memcached, despite repeated attempts, so for the time being I'm using the server daemon 'memcached' with PHP module memcache, although was I understand, it's not ideal.

In any event, again, thank you!

Quote from: Neo2SHYAlien on March 08, 2017, 08:00:17 AM
Quote from: VPREATR on March 08, 2017, 07:53:32 AM
Does anyone have an update for the latest version of CWP, it seems in the latest version, the file /usr/local/src/php-5.6.sh doesn't exist any longer and I need PHP 5.6.30 in my switcher, rather than 5.6.14.

That or if anyone has resolved on how to upgrade the switcher version from 5.6.14 to 5.6.30 in the latest version of CWP, please reply..

Thank you.

I'm still waiting for upgrade scripts for the new version. For older  0.9.8.153 version this fix works fine, before few days I upgrade my php to 5.6.30 :)

p.s After first compilation CWP create needed scripts under /usr/local/src/ ;)
p.s2 but for some reason CWP remove shell scripts here is a link for the original script from 0.9.8.189  CWP

VPREATR

Any ETA on those updated scripts and if they'll be CWP7 compatible? I wouldn't mind testing on my smaller VPS.

LMK,
Thanks!


Quote from: Administrator on March 08, 2017, 08:28:53 AM
soon there will be released scripts for centos 6 cwp version 153 upgrade and after that upgrade you will be able to install any php version via new friendly php switcher.

Neo2SHYAlien

Quote from: VPREATR on March 21, 2017, 07:34:27 AM
Neo2SHYAlien:
Thank you the link, I was able to update my switcher version of PHP from 5.6.14 to 5.6.30, in addition, compile modules for memcache, opcache and imagemagick; I have to run each additional on separate builds by using modified scripts, it's a kludge, but it works, if it could only be streamlined, that would be a plus.

Speaking of the PHP module memcache, unfortunately I was not able to compile memcached, despite repeated attempts, so for the time being I'm using the server daemon 'memcached' with PHP module memcache, although was I understand, it's not ideal.

In any event, again, thank you!

You are very welcome :)
"Would you tell me, please, which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't much care where–" said Alice.
"Then it doesn't matter which way you go," said the Cat.
Neo2SHYAlien's Blog