Not signed in (Sign In)
    • CommentAuthorwetnun
    • CommentTimeMar 16th 2010 edited
     permalink
    So I need PHP 5.3.2 for my slice. For those of you that have needed you probably found that this is a pain for packages. As a result of most of the google attempts I just build my own packages. You can find them here: http://pe-ell.net/rpms.html

    And here's how I installed them:

    cd /etc

    cp php.ini php.ini.5.1.6

    cd httpd/conf.d/

    cp php.conf php.conf.5.1.6

    cd /path/to/rpms/you/downloaded/

    rpm -qa | grep php | xargs rpm -e --nodeps

    rpm -Uvh php-5.3.2-1.x86_64.rpm php-cli-5.3.2-1.x86_64.rpm php-common-5.3.2-1.x86_64.rpm

    rpm -Uvh php-bcmath-5.3.2-1.x86_64.rpm php-dba-5.3.2-1.x86_64.rpm php-debuginfo-5.3.2-1.x86_64.rpm php-gd-5.3.2-1.x86_64.rpm php-imap-5.3.2-1.x86_64.rpm php-intl-5.3.2-1.x86_64.rpm php-ldap-5.3.2-1.x86_64.rpm php-mbstring-5.3.2-1.x86_64.rpm php-mcrypt-5.3.2-1.x86_64.rpm php-mysql-5.3.2-1.x86_64.rpm php-pdo-5.3.2-1.x86_64.rpm

    rpm -Uvh php-pear-1.9.0-1.noarch.rpm php-process-5.3.2-1.x86_64.rpm php-pspell-5.3.2-1.x86_64.rpm php-recode-5.3.2-1.x86_64.rpm php-snmp-5.3.2-1.x86_64.rpm php-soap-5.3.2-1.x86_64.rpm php-tidy-5.3.2-1.x86_64.rpm php-xml-5.3.2-1.x86_64.rpm php-xmlrpc-5.3.2-1.x86_64.rpm php-zts-5.3.2-1.x86_64.rpm

    service httpd restart

    Surprising everything worked great out the door afterwards. Tested all of my php sites and they worked fine. I need to change my logging level though since I'm getting lots of PHP Deprecated and PHP Warning due to the upgrade. Hopefully this will help others.

    Also make sure you have date.timezone set in your php.ini and you should probably change your error_reporting to something like this: E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED & ~E_NOTICE
    Thankful People: Jered
    • CommentAuthorfbroce
    • CommentTimeMar 24th 2010
     permalink
    Nice article. Did you test it with squirrelmail?
    • CommentAuthorwetnun
    • CommentTimeMar 24th 2010
     permalink
    No I didn't. I use roundcube. I have found that I had to tweak a couple open source projects that I have running. LifeType I just gave up on and wrote my own blog to replace it. They use very basic names for all of their classes ("Locale","Cache",etc) without any namespace and it conflicts with core classes. Most of my PHP stuff (other than LifeType and RoundCube) is older so not sure if I'd notice potential issues.
    • CommentAuthorfbroce
    • CommentTimeMar 25th 2010
     permalink
    I did end up upgrading to php-5.3.2. Squirrelmail works fine as well as Wordpress. I used your method to upgrade initially and
    finished with updating via CentALT since I needed the current php-fpm.