Control Web Panel
WebPanel => Updates => Topic started 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 :
#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.
-
php versions are regularly updated in cwp
-
php versions are regularly updated in cwp
What is regularly because the version in the switcher is 5.6.14 ?
-
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 ?
-
what cwp version you're using ?
CWP version: 0.9.8.132 with auto updates enabled :)
-
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]
-
Maybe I wasn't clear enough and misled you. This version is installed as alternative version via the switcher, not as default php version.
-
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.
-
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
-
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.
-
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.
-
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
-
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.
-
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 :)