1. 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

Discussion in 'Server Configuration and Hosting' started by Skyuser, Jun 18, 2014.

  1. Skyuser

    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?
     
  2. MattW

    MattW Well-Known Member

    What repo are you using for upgrading? remi?
     
  3. Skyuser

    Skyuser Member

    Donno why but remi shows me " nothing to upgrade".
     
  4. MattW

    MattW Well-Known Member

    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
     
    SneakyDave likes this.
  5. Skyuser

    Skyuser Member

    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?
     
  6. MattW

    MattW Well-Known Member

    Yes, because the directory where it's expecting the .so file to be will have changed.
     
  7. Skyuser

    Skyuser Member

    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?
     
    MattW likes this.
  8. MattW

    MattW Well-Known Member

    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. Skyuser

    Skyuser Member

    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?
     
  10. MattW

    MattW Well-Known Member

    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
     
  11. Skyuser

    Skyuser Member

    And what about libmemcached? Is it better?
     
  12. MattW

    MattW Well-Known Member

    Yes, install them both.

    memcached.x86_64
    libmemcached.x86_64
    php-pecl-memcached.x86_64
     
  13. Skyuser

    Skyuser Member

  14. MattW

    MattW Well-Known Member

    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                                                 
     
    Skyuser likes this.
  15. Skyuser

    Skyuser Member

    @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.
     
  16. MattW

    MattW Well-Known Member

    Are you using a control panel on the VPS?
     
  17. Skyuser

    Skyuser Member

    No. Everything was built on fresh-installed CentOS 6.4 x32 from repos/sources
     
    MattW likes this.
  18. MattW

    MattW Well-Known Member

    Any reason why you are using Apache + nginx, and not just using nginx?
     
  19. Skyuser

    Skyuser Member

    You mean nginx + php-fpm?
    I know nothing about php-fpm :)
     
  20. MattW

    MattW Well-Known Member

    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
     

Share This Page