Control Web Panel

WebPanel => Updates => Topic started by: Neo2SHYAlien on January 05, 2017, 06:40:51 AM

Title: Upgrade php 5.6 to version 5.6.29
Post by: Neo2SHYAlien on January 05, 2017, 06:40:51 AM
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 :
Code: [Select]
#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:
Code: [Select]
sh /usr/local/src/php-5.6.shI highly suggest CWP team to update php version - there is a lot CVE fixes between 5.6.14 and 5.6.29.
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: Sandeep on January 05, 2017, 07:02:07 AM
php versions are regularly updated in cwp
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: Neo2SHYAlien on January 05, 2017, 07:10:31 AM
php versions are regularly updated in cwp

What is regularly because the version in the switcher is 5.6.14 ?
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: Sandeep on January 06, 2017, 04:06:19 PM
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 ?
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: Neo2SHYAlien on January 06, 2017, 04:10:15 PM
what cwp version you're using ?

 CWP version: 0.9.8.132 with auto updates enabled :)
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: Sandeep on January 07, 2017, 03:04:12 AM
use this commands to build the php :)

Code: [Select]
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]
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: Neo2SHYAlien on January 07, 2017, 06:35:55 AM
Maybe I wasn't clear enough and misled you. This version is installed as alternative version via the switcher, not as default php version.
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: 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.
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: Neo2SHYAlien on March 08, 2017, 08:00:17 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 (http://pastebin.com/qnz7r4JM) for the original script from 0.9.8.189  CWP
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: 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.
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: VPREATR on March 11, 2017, 05:47:34 AM
I'm currently using CWP7pro.admin (latest version); will this upgrade apply to CWP7?

Thanks!

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.
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: 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!

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 (http://pastebin.com/qnz7r4JM) for the original script from 0.9.8.189  CWP
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: VPREATR on March 21, 2017, 07:36:27 AM
Any ETA on those updated scripts and if they'll be CWP7 compatible? I wouldn't mind testing on my smaller VPS.

LMK,
Thanks!


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.
Title: Re: Upgrade php 5.6 to version 5.6.29
Post by: Neo2SHYAlien on March 21, 2017, 08:01:20 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 :)