Upgrading to PHP 5.2.5 on RHEL and CentOS

November 16, 2007 by · 141 Comments 

After a little more than 2 months of waiting since the last release, PHP has been updated once again, this time to 5.2.5. The 5.2.5 release brings several security enhancements, more than 60 bug fixes, and improved performance for those of you that like arrays (and really, who doesn't?).

PHP 5.2.5 also updated the bundled version of PCRE to 7.3, although if you're a user of my repository you've been using that version for quite some time now, and the timezone database to 2007.9.

Now, what you've all been waiting for... The links! As always, I would encourage everyone reading this to add my Yum repository to your system for quick, easy updates. If you really don't want to, feel free to rebuild the Source RPM at the link below.

Update (11/19/2007): Source RPM updated to fix test issue on certain systems.  No binary package updates since the change doesn't actually affect anything but the test cases.

PHP 5.2.5 Release Notes / Changelog

Update (9/24/2009): Packages deleted, use the yum repository instead.

Comments

141 Responses to “Upgrading to PHP 5.2.5 on RHEL and CentOS”
  1. Carmine says:

    Jason,

    Will you be putting up the SRPM of PHP 5.2.6 ?

  2. Stefaan says:

    Hi,

    I have used your repo to upgrade my Centos4 system to these versions. I did have to rip out my current php/mysql before I was able to get this to work but all seems good so thanks for the repo.

    One issue I encountered is with qmail

    /var/qmail/bin/relaylock
    /var/qmail/bin/relaylock: /usr/lib64/mysql/libmysqlclient.so.14: no version information available (required by /var/qmail/bin/relaylock)
    --------

    I am using your mysqlclient14.

    This was causing mail to not go into its mailboxes. I grabbed the library file from my duplicate test server which was running the standard version and overwrote it and it's working fine since.

    Any ideas why it would throw that error?

    Thanks

  3. Joe says:

    Sorry - I went back and read your instructions - worked like a charm! Thanks

  4. avtx30 says:

    Thanks for the updates! It went smoothly at my server.

    avtx30

  5. Vic says:

    I see the XMLWriter is disabled when compiling the source

    ./configure' '--host=x86_64-redhat-linux-gnu' '--build=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json'

    Is there a way to load XMLWriter afterward as it's necessary for my application?

    Thanks,

    Vic

  6. Vic says:

    Sorry, I think I have asked a stupid question -- by installing the php-xml rpm, and I got the XMLWriter running.

    Vic

  7. James White says:

    Hey Jason, any chance you will be posting the scr.rpm for PHP 5.2.6?

  8. How about support for memcached? I'm trying to use your 5.2.x PHP installs, but when I install php-pecl-memcache (from another repository), I run into the following error on the command-line:

    $ php -v
    PHP Warning: PHP Startup: memcache: Unable to initialize module
    Module compiled with module API=20050922, debug=0, thread-safety=0
    PHP compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    PHP 5.2.6 (cli) (built: May 5 2008 10:32:59)
    Copyright (c) 1997-2008 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

  9. Dmitry says:

    Mike Brittain:

    I installed memcached directly from sources successfully.

    $pear install http://pecl.php.net/get/memcache-2.2.3.tgz

  10. Michael says:

    Jason,
    please help with compiling php5.2.6 with mailparser 2.1.4 under centos 5.1.
    After installing your packages via yum, and then bulding from source mailparser i'm getting error about unable to load dynamic library (all php). Also please provide a link with patched php-5.2.6 source rpm for centos 5.1.
    Thanks!
    regards,
    Mike

  11. Dom says:

    I too could do with a SRPM for 5.2.6 (on EL4 though); we're using an updated libcurl and a few other libraries, so need to build from source.
    I've cludged a build together, but would like to see how you handled a couple of the issues.

    Thanks for your RPMs though, they've made life so much easier!

  12. Ron says:

    Thanx, i am using your yum repository with great pleasure. But is it possible to publish your source RPM of php 5.2.6. I would like to customize some small thing.

    Thanx in advance..

    Regards,
    Ron

  13. Lou says:

    Hi Jason,

    The 5.2.6 rpm corrected an issue with pear, Thanks very much. Now I have issues with gd & freetype, is it possible to publish the source rpm so I can make a few custom changes.

    Thanks again,

    Lou

  14. Tim B says:

    Hi,

    I'm having major issues with 5.2.6 with lighty.

    2008-08-02 23:43:31: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 3718 socket: tcp:127.0.0.1:1029
    2008-08-02 23:43:31: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: tcp:127.0.0.1:1029 for /account/page.php , terminating connection

    This is fixed in php here: http://cvs.php.net/viewvc.cgi/php-src/main/SAPI.c?r1=1.202.2.7.2.15&r2=1.202.2.7.2.16&pathrev=PHP_5_2&diff_format=u

    Any chance you can release later PHP version to fix this?

    Thanks.

  15. Alex says:

    Hi,

    i installed a lot of your scripts. First I built the php 5.2 by source (see howto), after that I was able to include your yum repository.

    Now I have an interesting situation. I'm not able to access the mysql - database on the server via tcp (by php). I wrote a script to try the database connection and I got the following result:

    dbconnecttest.php:
    localhost: erfolgreich # it is working, localhost jumps to socket
    192.168.1.12: keine Verbindung möglich # no connection on db server (same host)
    192.168.1.200: keine Verbindung möglich # no connection on db server (remote host)

    All db servers are working and the ports are open. Other systems are able to access the mysql servers.

    List of packages:
    [[email protected] php.d]# yum list | grep jason
    * utterramblings: http://www.jasonlitka.com
    mysql.i386 5.0.58-jason.2 installed
    mysql-devel.i386 5.0.58-jason.2 installed
    mysql-server.i386 5.0.58-jason.2 installed
    php.i386 5.2.6-jason.1 installed
    php-bcmath.i386 5.2.6-jason.1 installed
    php-cli.i386 5.2.6-jason.1 installed
    php-common.i386 5.2.6-jason.1 installed
    php-dba.i386 5.2.6-jason.1 installed
    php-devel.i386 5.2.6-jason.1 installed
    php-embedded.i386 5.2.6-jason.1 installed
    php-gd.i386 5.2.6-jason.1 installed
    php-imap.i386 5.2.6-jason.1 installed
    php-ldap.i386 5.2.6-jason.1 installed
    php-mbstring.i386 5.2.6-jason.1 installed
    php-mcrypt.i386 5.2.6-jason.1 installed
    php-mhash.i386 5.2.6-jason.1 installed
    php-mssql.i386 5.2.6-jason.1 installed
    php-mysql.i386 5.2.6-jason.1 installed
    php-ncurses.i386 5.2.6-jason.1 installed
    php-odbc.i386 5.2.6-jason.1 installed
    php-pdo.i386 5.2.6-jason.1 installed
    php-pgsql.i386 5.2.6-jason.1 installed
    php-snmp.i386 5.2.6-jason.1 installed
    php-soap.i386 5.2.6-jason.1 installed
    php-tidy.i386 5.2.6-jason.1 installed
    php-xml.i386 5.2.6-jason.1 installed
    php-xmlrpc.i386 5.2.6-jason.1 installed
    subversion.i386 1.4.4-jason.1 installed

    Do you have an idea?

  16. tony says:

    Hi Jason,

    I am having problem install the php-bcmath package on my CentOS 5.2 server. I use your repository to upgrade my PHP version to 5.2.6. However when I tried to install bcmath by 'yum install bcmath', I got the following result:

    Loading "fastestmirror" plugin
    Loading mirror speeds from cached hostfile
    * utterramblings: http://www.jasonlitka.com
    * extras: mirror.sanctuaryhost.com
    * updates: dist1.800hosting.com
    * base: mirror.raystedman.net
    * addons: mirror.raystedman.net
    Setting up Install Process
    Parsing package install arguments
    No package bcmath available.
    Nothing to do

    So I guess bcmath is not available in your repository? I found an RPM package of bcmath for php 5.2.6. When I tried to install it, I got this error: php-common = 4:5.2.6-4 is needed by php-bcmath-5.2.6-4.i586

    I wonder what's going wrong my install bcmath. Could you or somebody else to help me out?

    Thanks a lot!!

  17. Funboy says:

    Hi Jason and others,

    Thanks for the repo and its rewards you offer to us all, great work, I do however have an issue as a noob to all this and that is after adding the repo I did a yum update which resulted in the following being installed or not as the case maybe;

    * utterramblings: http://www.jasonlitka.com
    apr.x86_64 1.2.12-2.jason.1 installed
    apr-util.x86_64 1.2.12-5.jason.1 installed
    httpd.x86_64 2.2.8-jason.3 installed
    httpd-devel.x86_64 2.2.8-jason.3 installed
    mod_perl.x86_64 2.0.3-14.jason.1 installed
    mod_ssl.x86_64 1:2.2.8-jason.3 installed
    pcre.x86_64 7.6-jason.1 installed
    php-pear.noarch 1:1.6.2-1.jason.1 installed
    apr-devel.x86_64 1.2.12-2.jason.1 utterramblings
    apr-util-devel.x86_64 1.2.12-5.jason.1 utterramblings
    apr-util-mysql.x86_64 1.2.12-5.jason.1 utterramblings
    apr-util-pgsql.x86_64 1.2.12-5.jason.1 utterramblings
    apr-util-sqlite.x86_64 1.2.12-5.jason.1 utterramblings
    httpd-manual.x86_64 2.2.8-jason.3 utterramblings
    mod_perl-devel.x86_64 2.0.3-14.jason.1 utterramblings
    mod_python.x86_64 3.3.1-5.jason.1 utterramblings
    mod_security.x86_64 2.5.0-jason.2 utterramblings
    mysql.x86_64 5.0.58-jason.2 utterramblings
    mysql-bench.x86_64 5.0.58-jason.2 utterramblings
    mysql-cluster.x86_64 5.0.58-jason.2 utterramblings
    mysql-devel.x86_64 5.0.58-jason.2 utterramblings
    mysql-server.x86_64 5.0.58-jason.2 utterramblings
    mysql-test.x86_64 5.0.58-jason.2 utterramblings
    pcre-devel.x86_64 7.6-jason.1 utterramblings
    php.x86_64 5.2.6-jason.1 utterramblings
    php-bcmath.x86_64 5.2.6-jason.1 utterramblings
    php-cli.x86_64 5.2.6-jason.1 utterramblings
    php-common.x86_64 5.2.6-jason.1 utterramblings
    php-dba.x86_64 5.2.6-jason.1 utterramblings
    php-dbase.x86_64 5.2.4-jason.1 utterramblings
    php-devel.x86_64 5.2.6-jason.1 utterramblings
    php-embedded.x86_64 5.2.6-jason.1 utterramblings
    php-gd.x86_64 5.2.6-jason.1 utterramblings
    php-imap.x86_64 5.2.6-jason.1 utterramblings
    php-ldap.x86_64 5.2.6-jason.1 utterramblings
    php-mbstring.x86_64 5.2.6-jason.1 utterramblings
    php-mcrypt.x86_64 5.2.6-jason.1 utterramblings
    php-mhash.x86_64 5.2.6-jason.1 utterramblings
    php-mssql.x86_64 5.2.6-jason.1 utterramblings
    php-mysql.x86_64 5.2.6-jason.1 utterramblings
    php-ncurses.x86_64 5.2.6-jason.1 utterramblings
    php-odbc.x86_64 5.2.6-jason.1 utterramblings
    php-pdo.x86_64 5.2.6-jason.1 utterramblings
    php-pgsql.x86_64 5.2.6-jason.1 utterramblings
    php-snmp.x86_64 5.2.6-jason.1 utterramblings
    php-soap.x86_64 5.2.6-jason.1 utterramblings
    php-tidy.x86_64 5.2.6-jason.1 utterramblings
    php-xcache.x86_64 5.2.6_1.2.2-jason.3 utterramblings
    php-xml.x86_64 5.2.6-jason.1 utterramblings
    php-xmlrpc.x86_64 5.2.6-jason.1 utterramblings
    subversion-javahl.x86_64 1.4.4-jason.1 utterramblings
    subversion-ruby.x86_64 1.4.4-jason.1 utterramblings

    My issue is that I am trying to install mcrypt x86_64 2.6.4-3.el5 epel, php-mcrypt x86_64 5.1.6-15.el5.centos.1 which say completed however do not show in php-info even after Apache restarts along with http. As you can see above some of the updates from your repo have not completed? (utterramblings)

    When trying to do a further update i get the following

    Resolving Dependencies
    --> Running transaction check
    ---> Package mod_python.x86_64 0:3.3.1-5.jason.1 set to be updated
    ---> Package tomcat5-jasper.x86_64 0:5.5.23-0jpp.7.el5_2.1 set to be updated
    ---> Package tomcat5-common-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1 set to be updated
    ---> Package tomcat5-server-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1 set to be updated
    ---> Package php-mhash.x86_64 0:5.2.6-jason.1 set to be updated
    --> Processing Dependency: php-common = 5.2.6-jason.1 for package: php-mhash
    ---> Package tomcat5-webapps.x86_64 0:5.5.23-0jpp.7.el5_2.1 set to be updated
    ---> Package tomcat5-servlet-2.4-api.x86_64 0:5.5.23-0jpp.7.el5_2.1 set to be updated
    ---> Package ruby-mysql.x86_64 0:2.7.3-1.el5 set to be updated
    ---> Package tomcat5-jsp-2.0-api.x86_64 0:5.5.23-0jpp.7.el5_2.1 set to be updated
    ---> Package tomcat5.x86_64 0:5.5.23-0jpp.7.el5_2.1 set to be updated
    ---> Package tomcat5-admin-webapps.x86_64 0:5.5.23-0jpp.7.el5_2.1 set to be updated
    ---> Package php-mcrypt.x86_64 0:5.2.6-jason.1 set to be updated
    --> Processing Dependency: php-common = 5.2.6-jason.1 for package: php-mcrypt
    --> Finished Dependency Resolution
    Error: Missing Dependency: php-common = 5.2.6-jason.1 is needed by package php-mhash
    Error: Missing Dependency: php-common = 5.2.6-jason.1 is needed by package php-mcrypt

    I have however already got these below installed but they again will not show within php-info

    Dependencies Resolved

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================
    Removing:
    mcrypt x86_64 2.6.4-3.el5 installed 197 k

    Transaction Summary
    =============================================================================
    Install 0 Package(s)
    Update 0 Package(s)
    Remove 1 Package(s)

    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Erasing : mcrypt ######################### [1/1]

    Removed: mcrypt.x86_64 0:2.6.4-3.el5
    Complete!

    Dependencies Resolved

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================
    Installing:
    mcrypt x86_64 2.6.4-3.el5 epel 82 k

    Transaction Summary
    =============================================================================
    Install 1 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 82 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/1): mcrypt-2.6.4-3.el5 100% |=========================| 82 kB 00:00
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing: mcrypt ######################### [1/1]

    Installed: mcrypt.x86_64 0:2.6.4-3.el5
    Complete!

    Dependencies Resolved

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================
    Installing:
    php-mcrypt x86_64 5.1.6-15.el5.centos.1 extras 16 k

    Transaction Summary
    =============================================================================
    Install 1 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 16 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/1): php-mcrypt-5.1.6-1 100% |=========================| 16 kB 00:00
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing: php-mcrypt ######################### [1/1]

    Installed: php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1
    Complete!

    So how do I turn your utterramblings into installed please as i believe this must be the cause of my issues.

    Regards
    Funboy

  18. Funboy says:

    sorry forgot to say the issue is that i have php-common-5.2.6-1.el5.art installed and this is what is stopping your php-common from installing and I do not know a safe procedure to remove this as --depens will not work and there are over 127 of them which I obviuly do not want to remove unless told to do so.

    I have manually installed your php-mhash package which has now resulted in the following being able to upgrade;

    Dependencies Resolved

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================
    Updating:
    mod_python x86_64 3.3.1-5.jason.1 utterramblings 976 k
    ruby-mysql x86_64 2.7.3-1.el5 epel 46 k
    tomcat5 x86_64 5.5.23-0jpp.7.el5_2.1 updates 358 k
    tomcat5-admin-webapps x86_64 5.5.23-0jpp.7.el5_2.1 updates 3.4 M
    tomcat5-common-lib x86_64 5.5.23-0jpp.7.el5_2.1 updates 220 k
    tomcat5-jasper x86_64 5.5.23-0jpp.7.el5_2.1 updates 1.1 M
    tomcat5-jsp-2.0-api x86_64 5.5.23-0jpp.7.el5_2.1 updates 100 k
    tomcat5-server-lib x86_64 5.5.23-0jpp.7.el5_2.1 updates 4.1 M
    tomcat5-servlet-2.4-api x86_64 5.5.23-0jpp.7.el5_2.1 updates 160 k
    tomcat5-webapps x86_64 5.5.23-0jpp.7.el5_2.1 updates 1.2 M

    Transaction Summary
    =============================================================================
    Install 0 Package(s)
    Update 10 Package(s)
    Remove 0 Package(s)

    Total download size: 12 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/10): tomcat5-jsp-2.0-a 100% |=========================| 100 kB 00:00
    (2/10): tomcat5-server-li 100% |=========================| 4.1 MB 00:00
    (3/10): tomcat5-servlet-2 100% |=========================| 160 kB 00:00
    (4/10): ruby-mysql-2.7.3- 100% |=========================| 46 kB 00:00
    (5/10): tomcat5-admin-web 100% |=========================| 3.4 MB 00:00
    (6/10): tomcat5-common-li 100% |=========================| 220 kB 00:00
    (7/10): tomcat5-webapps-5 100% |=========================| 1.2 MB 00:00
    (8/10): tomcat5-jasper-5. 100% |=========================| 1.1 MB 00:00
    (9/10): tomcat5-5.5.23-0j 100% |=========================| 358 kB 00:00
    (10/10): mod_python-3.3.1 100% |=========================| 976 kB 00:02
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Updating : tomcat5-servlet-2.4-api ####################### [ 1/20]
    Updating : tomcat5-jasper ####################### [ 2/20]
    Updating : tomcat5-server-lib ####################### [ 3/20]
    Updating : tomcat5-jsp-2.0-api ####################### [ 4/20]
    Updating : tomcat5-common-lib ####################### [ 5/20]
    Updating : tomcat5 ####################### [ 6/20]
    Updating : mod_python ####################### [ 7/20]
    Updating : tomcat5-webapps ####################### [ 8/20]
    Updating : tomcat5-admin-webapps ####################### [ 9/20]
    Updating : ruby-mysql ####################### [10/20]
    Cleanup : mod_python ####################### [11/20]
    Cleanup : tomcat5 ####################### [12/20]
    Trying to start MySQL server... Trying to establish test connection... connected
    done
    Checking for the system groups and users necessary for Tomcat...
    Checking for the group 'tomcat'...
    Group 'tomcat' already exists

    Checking for the user 'tomcat'...
    User 'tomcat' already exists

    Trying to comment CATALINA_BASE variable in the /etc/sysconfig/tomcat5... done
    Trying to find JAVA_HOME variable in the /usr/share/tomcat5/conf/tomcat5.conf...
    JAVA_HOME variable is already in the /usr/share/tomcat5/conf/tomcat5.conf and has correct value (/usr/lib/jvm/java)
    Trying to replace TOMCAT_USER variable in the /usr/share/tomcat5/conf/tomcat5.conf... done
    Making chown and chmod under JDK stuff
    Trying to set up Tomcat permissions... done
    Cleanup : tomcat5-jasper ####################### [13/20]
    Cleanup : tomcat5-webapps ####################### [14/20]
    Cleanup : tomcat5-common-lib ####################### [15/20]
    Cleanup : tomcat5-admin-webapps ####################### [16/20]
    Cleanup : ruby-mysql ####################### [17/20]
    Cleanup : tomcat5-servlet-2.4-api ####################### [18/20]
    Cleanup : tomcat5-server-lib ####################### [19/20]
    Cleanup : tomcat5-jsp-2.0-api ####################### [20/20]

    Updated: mod_python.x86_64 0:3.3.1-5.jason.1 ruby-mysql.x86_64 0:2.7.3-1.el5 tomcat5.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-admin-webapps.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-common-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-jasper.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-jsp-2.0-api.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-server-lib.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-servlet-2.4-api.x86_64 0:5.5.23-0jpp.7.el5_2.1 tomcat5-webapps.x86_64 0:5.5.23-0jpp.7.el5_2.1
    Complete!

    So can anyone please tell me how I can install Jason's php-common = 5.2.6-jason.1 package which is required by mcrypt.

    Regards
    Funboy

  19. Funboy says:

    OK replaced it using the pm -e --nodeps php-common command followed by yum install php-common-5.2.6-jason.1.x86_64 then reinstalled php-mcrypt from Jason's repo however it still refuses to rum so I am now checking that previously installed Atomic Turtle repo stuff is not causing the issue as I suspect this is what has happened.

    Regards
    Funboy

  20. Garethrees says:

    Thanks Very Much! this is great.

  21. Jimmy says:

    Hi Jason

    I would like to know if you will release src.rpm of 5.2.6 or not becuase I need to add --enable-memory-limit on php-cgi

    Thank you

  22. Andrew says:

    Hi Jason,

    I am getting two errors when trying to update php:

    Error: Missing Dependency: libc-client.so.0()(64bit) is needed by package php-imap
    Error: Missing Dependency: php <= 5.2.0 is needed by package php-sqlite2

    How can I fix this?

    Thanks a lot!

  23. Graham Wideman says:

    Hi Jason:
    Using yum and your repo (and according it priority=1) I just updated my Centos 5 box from php 5.1.something to 5.2.6. I also updated php-pear to 1:1.6.2-1.jason.1.

    However, after restarting apache and getting a phpinfo, I see Configure Command includes --without-pear
    A
    Is there something else I need to do to get pear to operate?

    Thanks, Graham

  24. Aled says:

    I'm getting the same error as Andrew :

    Error: Missing Dependency: php <= 5.2.0 is needed by package php-sqlite2

    Does anyone know how to fix it?

    I saw this page : http://www.experts-exchange.com/OS/Linux/Q_23819532.html

    The accepted answer doesn't mean much to me though.

    Thanks

  25. Marky says:

    Hi Jason,

    I have Install PHP, GD and T1LIB using yum.Now gd library is enabled in php but not t1lib, all the sites say we need to compile it.
    As this is my production box I will not be able to compile and run from the beginning, is there a way I could add t1lib to the gd config so that gd will recognize t1lib.

    Thanks

    Marky

  26. Chris says:

    Hi, I've just done some testing with building fedora 10 SRPMS (php-5.2.6) for CentOS 5 and made the notes available at http://wiki.opencsta.org/index.php/Centos_5_with_PHP-5.2 if anyone is interested.

  27. Mr Ben says:

    Jason you are an absolute star! I followed the yum repo stuff and the update worked perfectly! Thank you sooo much.

  28. subversion-devel-1.4.4-ja 100% |=========================| 16 kB 00:00
    ---> Package subversion-devel.i386 0:1.4.4-jason.1 set to be updated
    --> Running transaction check
    --> Processing Dependency: initscripts >= 7.93.31 for package: httpd
    --> Processing Dependency: httpd-mmn = 20020903 for package: mod_auth_kerb
    --> Processing Dependency: httpd-mmn = 20020903 for package: mod_auth_pgsql
    --> Processing Dependency: httpd-mmn = 20020903 for package: mod_authz_ldap
    --> Processing Dependency: httpd-mmn = 20020903 for package: mod_auth_mysql
    --> Finished Dependency Resolution
    Error: Missing Dependency: initscripts >= 7.93.31 is needed by package httpd
    Error: Missing Dependency: httpd-mmn = 20020903 is needed by package mod_auth_pgsql
    Error: Missing Dependency: httpd-mmn = 20020903 is needed by package mod_authz_ldap
    Error: Missing Dependency: httpd-mmn = 20020903 is needed by package mod_auth_kerb
    Error: Missing Dependency: httpd-mmn = 20020903 is needed by package mod_auth_mysql

  29. caleb says:

    I posted something here and it didnt appear, are you not accepting new posts?

  30. caleb says:

    Ok, maybe I will post a little less. I am trying to update PHP 5.2 and am getting errors similar to this:
    php-5.1.6-20.el5_2.1.x86_64 from installed has depsolving problems
    --> Missing Dependency: php-cli = 5.1.6-20.el5_2.1 is needed by package php-5.1.6-20.el5_2.1.x86_64 (installed)
    Error: Missing Dependency: php-cli = 5.1.6-20.el5_2.1 is needed by package php-5.1.6-20.el5_2.1.x86_64 (installed)

    Is there anything simple to do to get around this?

  31. ssp711 says:

    hi friend,
    i glad to find your site.

    my system is RH EL 5, 64 bit.

    after i run yum update, i install phpmyadmin, it said i need php-mycrpt.

    so i run

    # yum install php-mcrypt

    Loaded plugins: rhnplugin, security
    Setting up Install Process
    Parsing package install arguments
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-mcrypt.x86_64 0:5.2.6-jason.1 set to be updated
    --> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt
    --> Finished Dependency Resolution
    php-mcrypt-5.2.6-jason.1.x86_64 from utterramblings has depsolving problems
    --> Missing Dependency: libmcrypt.so.4()(64bit) is needed by package php-mcryp t-5.2.6-jason.1.x86_64 (utterramblings)
    Error: Missing Dependency: libmcrypt.so.4()(64bit) is needed by package php-mcry pt-5.2.6-jason.1.x86_64 (utterramblings)

    is there any help?

  32. DaDoc says:

    @ssp711

    try to run

    yum install libmcrypt.x86_64

  33. ruizerwin says:

    Hello Jason.
    I being reading from the top line. line by line.

    I'm using REHL 5.0 and i need to upgrade my php 5.1 to 5.2
    every time i run yum upgrade php-5.2.5-jason ... send me and error. Not a compatible architecture.
    Any help please.

  34. Linux Installing says:

    Just wanted to say thank you for this inspirational post. I decided that maybe it's time to start my own "ramblings" blog :-)

    Thanks for the RPM's and the work that goes into testing them and releasing it to the hungry public.

  35. Igor says:

    Hi,

    I'm trying to upgrade php-5.1.6 on CentOS 5.3 using your repository.
    I did everything according to http://www.daniel-skinner.co.uk/php-under-control-svn-centos-5/12/06/2008

    but after:

    yum install -y php php-pear php-xml

    I've got:

    Error: Missing Dependency: php-common = 5.1.6-20.el5_2.1 is needed by package php-odbc-5.1.6-20.el5_2.1.x86_64 (installed)

    I tried to use a lot of differen yum updates with the same result.
    Can you help me?

  36. Lou says:

    Hi Janson, I'm trying to use php-odbc-5.2.6, can you tell me if odbc was compiled with php-5.2.6?

    Thanks,

  37. Christian says:

    Excelent Dmitri (posted May 21, 2008 at 5:23 pm),
    Problem solved!, maybe is not elegant solution but WORKS!

    Thanks!
    "chi chi chi le le le, viva Chile!"

Trackbacks

Check out what others are saying about this post...
  1. KMM Projects » Blog Archive » PHP woes says:

    [...] restore it, tried installing Jason’s RPM again, got PHP but no MySQL connector, actually read the comments on Jason’s site and then installed php-mysql and to my amazement, got PHP 5 talking to MySQL [...]

  2. [...] Paquetes e instrucciones para actualizar a PHP 5.2.5 [...]

  3. programming with free software and open source :: Actualizando Php en Centos 5.1–> 5.2 :: June :: 2008 says:

    [...] fuente : http://www.jasonlitka.com/2007/11/16/upgrading-to-php-525-on-rhel-and-centos/&nbsp; [...]



Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

 

Note: This post is over 5 years old. You may want to check later in this blog to see if there is new information relevant to your comment.

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Use of a non-personal web site or blog in the "Web Site" field and/or leaving a comment that is off-topic or inappropriate may result in the comment being edited or removed at the discretion of the site owner.