• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Upgrading php from 5.4 to 5.5

#1
Hello everyone!
What's the better way to upgrade php from 5.4 to 5.5 with saving all modules?
Using yum list installed | grep php and manually installing everything?
 

MattW

Well-known member
#4
You need to edit the remi repo to enable the PHP5.5 group.

Code:
[remi]
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority

[remi-php55]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 5 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/5/php55/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/5/php55/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi


[remi-test]
name=Les RPM de remi en test pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/test/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/test/mirror
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
 
#5
You need to edit the remi repo to enable the PHP5.5 group.

Code:
[remi]
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority

[remi-php55]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 5 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/5/php55/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/5/php55/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi


[remi-test]
name=Les RPM de remi en test pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/test/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/test/mirror
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
Thanks, i noticed it few minutes ago. My old rem.repo had not lines of code with [remi-php55].
Last question - do i need to rebuild imagick from 5.4 to 5.5?
 

MattW

Well-known member
#6
Thanks, i noticed it few minutes ago. My old rem.repo had not lines of code with [remi-php55].
Last question - do i need to rebuild imagick from 5.4 to 5.5?
Yes, because the directory where it's expecting the .so file to be will have changed.
 

MattW

Well-known member
#8
Ok, now update is working. But what with built in opcache in 5.5. Do i need smth to intall it or just everything "in box" with this update?
It will create a file with the settings in: /etc/php.d/opcache.ini

enable it by changing setting : opcache.enable=1

and then tweak the rest of the settings to suite your needs.
 
#9
Thanks. How should i enable it in XenForo?
First - delete APC line in config.php
Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['backend'] = 'Apc';
And after that?
 

MattW

Well-known member
#10
Thanks. How should i enable it in XenForo?
First - delete APC line in config.php
Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['backend'] = 'Apc';
And after that?
You don't need to anything to make zendopcache work with XenForo. It will automatically cache the PHP files. You need to install Memcached to be able to use the backend cache with PHP5.5 or APCu
 

MattW

Well-known member
#14
Do i need to install the memcache PECL Extension for PHP or memcached?
According to this article - http://www.ipserverone.info/control-panel/how-to-install-memcached-and-libmemcached/ i need memcache.
Memcached :
php-pecl-memcached.x86_64

This is from when I upgraded @Brogan s server the other night:

Code:
Installed Packages
libmemcached.x86_64                                                                                                            1.0.4-1.el5.remi                                                                                    installed
memcached.x86_64                                                                                                               1.4.20-1.el5.remi                                                                                   installed
perl-Cache-Memcached.noarch                                                                                                    1.26-3.el5                                                                                        installed
php-pecl-memcached.x86_64                                                                                                      2.2.0-2.el5.remi.5.5                                                                         installed
 
#15
@MattW My server running under nginx 1.4.7 pagespeed + Apache 2.2.25, MySQL 5.5.x, php 5.4 APC. I want to update nginx to 1.6.0, MySQL to MariDB 10 and php 5.5 with op + memcached. Hosting - Digitaloceab 1GB ram plan.
Will be there any speed boost? CPU usage in high load time - 15-17% and Ram - 220 mb.