Old 8th January 2011, 17:10
deunan deunan is offline
Junior Member
Join Date: Sep 2009
Posts: 8
Thanks: 0
Thanked 4 Times in 2 Posts
Default Centos 5.5 - IUS PHP53

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
Reply With Quote
Sponsored Links
Old 9th January 2011, 10:22
deunan deunan is offline
Junior Member
Join Date: Sep 2009
Posts: 8
Thanks: 0
Thanked 4 Times in 2 Posts


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.
Reply With Quote
Old 9th January 2011, 14:27
mini14 mini14 is offline
Join Date: Oct 2010
Posts: 66
Thanks: 2
Thanked 3 Times in 3 Posts

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPconfig and apache on centos 5.5 Hamra Installation/Configuration 4 9th October 2010 01:16
Mysql on Centos 5.5 newbie14 Server Operation 1 1st October 2010 01:33
Problems connecting my HTC Desire outgoing mail client to Postfix and ISP Config 2 j.smith1981 Server Operation 6 12th July 2010 19:07
The Perfect Server - CentOS 5.5 x86_64 [ISPConfig 3] - Issues Aradan Server Operation 6 11th July 2010 02:38
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 16:22

All times are GMT +2. The time now is 14:29.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.