Centos 5.5 - IUS PHP53

Discussion in 'Installation/Configuration' started by deunan, Jan 8, 2011.

  1. deunan

    deunan New Member

    Dear all

    I had a requirement to install a PHP app that requires PHP5.2. Centos ships with 5.1.6 :-(

    Anyway, after long consideration, I've decided to use IUS' PHP 5.3 stack. I avoided Centos's PHP5.2 Testing repo due to missing modules and also, since 5.3 is bleeding edge (WTF!?)


    After aggressively ensuring EPEL and IUS repo does not inadvertently overwrites ISPConfig dependent packages that was sourced from RPMForge, using IUS yum-plugin-replace, with a single command - "yum replace php --replace-with php53u", the upgrade was relatively painless!

    exclude=perl* arj fail2ban freeze mod_fcgid nomarch php-eaccelerator pure-ftpd
    Before I forget - I did this on a freshly installed Centos 5.5 Perfect Server configuration. Your mileage may vary.

    There was some things of note -

    php-mhash has been deprecated in PHP5.3, so you don't need this.

    I had to install php53u-tidy separately, it was uninstalled as part of "Dependency Removed" but not replaced automagically.

    php-eaccelerator was also removed and I couldn't find a replacement on IUS repo for this. Instead, I used php53u-pecl-apc. Not sure whether this is okay though and I invite comments/advice.

    Another concern is suPHP. Unsure of the proper was top test this, I had wordpress installed in a website with suPHP enabled. Wordpress seems working fine with automatic plugin updates working flawlessly. Can anyone comment whether this means suPHP is working or otherwise? Also does lack of php-eaccelerator affect operations, also since I had to replace it with php53u-pecl-apc.

    Comments/Advice appreciated.

    Some of things I wrote about of note below -

     php53u                          i386                  5.3.4-2.ius.el5                        ius                      1.3 M
     php53u-cli                      i386                  5.3.4-2.ius.el5                        ius                      3.0 M
     php53u-common                   i386                  5.3.4-2.ius.el5                        ius                      571 k
     php53u-devel                    i386                  5.3.4-2.ius.el5                        ius                      668 k
     php53u-gd                       i386                  5.3.4-2.ius.el5                        ius                      109 k
     php53u-imap                     i386                  5.3.4-2.ius.el5                        ius                       48 k
     php53u-ldap                     i386                  5.3.4-2.ius.el5                        ius                       34 k
     php53u-mbstring                 i386                  5.3.4-2.ius.el5                        ius                      1.2 M
     php53u-mcrypt                   i386                  5.3.4-2.ius.el5                        ius                       30 k
     php53u-mssql                    i386                  5.3.4-2.ius.el5                        ius                       40 k
     php53u-mysql                    i386                  5.3.4-2.ius.el5                        ius                       85 k
     php53u-odbc                     i386                  5.3.4-2.ius.el5                        ius                       49 k
     php53u-pdo                      i386                  5.3.4-2.ius.el5                        ius                       64 k
     php53u-pear                     noarch                1:1.8.1-6.ius.el5                      ius                      420 k
     php53u-pspell                   i386                  5.3.4-2.ius.el5                        ius                       24 k
     php53u-snmp                     i386                  5.3.4-2.ius.el5                        ius                       27 k
     php53u-soap                     i386                  5.3.4-2.ius.el5                        ius                      144 k
     php53u-xml                      i386                  5.3.4-2.ius.el5                        ius                      110 k
     php53u-xmlrpc                   i386                  5.3.4-2.ius.el5                        ius                       50 k
     php                             i386                  5.1.6-27.el5_5.3                       installed                5.9 M
     php-cli                         i386                  5.1.6-27.el5_5.3                       installed                5.2 M
     php-common                      i386                  5.1.6-27.el5_5.3                       installed                393 k
     php-devel                       i386                  5.1.6-27.el5_5.3                       installed                2.5 M
     php-gd                          i386                  5.1.6-27.el5_5.3                       installed                327 k
     php-imap                        i386                  5.1.6-27.el5_5.3                       installed                 96 k
     php-ldap                        i386                  5.1.6-27.el5_5.3                       installed                 43 k
     php-mbstring                    i386                  5.1.6-27.el5_5.3                       installed                1.6 M
     php-mcrypt                      i386                  5.1.6-15.el5.centos.1                  installed                 32 k
     php-mssql                       i386                  5.1.6-15.el5.centos.1                  installed                 48 k
     php-mysql                       i386                  5.1.6-27.el5_5.3                       installed                175 k
     php-odbc                        i386                  5.1.6-27.el5_5.3                       installed                 83 k
     php-pdo                         i386                  5.1.6-27.el5_5.3                       installed                100 k
     php-pear                        noarch                1:1.4.9-6.el5                          installed                1.8 M
     php-snmp                        i386                  5.1.6-27.el5_5.3                       installed                 24 k
     php-soap                        i386                  5.1.6-27.el5_5.3                       installed                299 k
     php-xml                         i386                  5.1.6-27.el5_5.3                       installed                215 k
     php-xmlrpc                      i386                  5.1.6-27.el5_5.3                       installed                 87 k
    Installing for dependencies:
     libedit                         i386                  20090923-3.0_1.el5.rf                  rpmforge                 262 k
     t1lib                           i386                  5.1.1-7.el5                            epel                     194 k
    Removing for dependencies:
     php-eaccelerator                i386                  5.1.6_0.9.5.2-4.el5.rf                 installed                703 k
     php-mhash                       i386                  5.1.6-15.el5.centos.1                  installed                7.4 k
     php-tidy                        i386                  5.1.6-15.el5.centos.1                  installed                 43 k
     php53u-pecl-apc                    i386                    3.1.6-2.ius.el5                     ius                    103 k
     php53u-tidy                        i386                    5.3.4-2.ius.el5                     ius                     33 k
  2. deunan

    deunan New Member


    I've managed to re-compile Rpmforge's php-eaccelerator against IUS' PHP5.3 stack using the latest sources from http://eaccelerator.net/ (eaccelerator-

    All I did was to have the source tarball in the "/usr/src/redhat/SOURCES" and to change the spec file at line #7 defining the new source -

    %define module_version
    phpinfo shows the [eAccelerator] section and so did the command below -

    # php -v
    PHP 5.3.4 (cli) (built: Jan  5 2011 11:52:39)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
        with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
    Would appreciate any comments.
  3. mini14

    mini14 Member

    If suPHP is working correctly you will notice while running "top" that php jobs show up as "php-cgi" when they run.

Share This Page