Upgrading php from 5.4 to 5.5

Skyuser

Member
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?
 
You need to edit the remi repo to enable the PHP5.5 group.

Rich (BB 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
 
You need to edit the remi repo to enable the PHP5.5 group.

Rich (BB 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?
 
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.
 
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.
 
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?
 
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
 
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
And what about libmemcached? Is it better?
 
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
 
@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.
 
You mean nginx + php-fpm?
I know nothing about php-fpm :)
Yes, so I presume you are using nginx as a reverse proxy to apache from the above. php5-fpm is quite easy to set up, so you could totally do away with apache, and use nginx+php-fpm
 
Back
Top Bottom