Forums

Resolved
0 votes
I need to upgrade PHP to version 5.2.9

I'll use the following instruction:

wget ftp://starlane.gotdns.org/php-5.2.9/ClearOS5.1/*.rpm
yum --nogpgcheck install php-*
service httpd restart
yum update


questions:

1) Can I use rpm for ClearOS5.1 with ClearOS5.2?

2) Are instructions correct?

Thanks
Tuesday, November 02 2010, 11:16 AM
Share this post:
Responses (43)
  • Accepted Answer

    Naude
    Naude
    Offline
    Monday, September 02 2013, 08:38 PM - #Permalink
    Resolved
    0 votes
    Ello Tim,
    I need php5 V5.4.0 and enabling the clearos-core repo or your timb repo did not work on a ClearOS 6.4.0 final.
    Any suggestions please.
    thanks
    The reply is currently minimized Show
  • Accepted Answer

    Sigaud
    Sigaud
    Offline
    Tuesday, June 14 2011, 09:08 PM - #Permalink
    Resolved
    0 votes
    Thank you I'm the wrong version when I ran the command
    Really thank you for everything
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 14 2011, 12:07 PM - #Permalink
    Resolved
    0 votes
    OK, so how did you install PHP?

    The instructions are:-

    to install 5.2.17 run
    yum --enablerepo=timb upgrade php

    to install 5.3.6 run
    yum --enablerepo=timb-testing upgrade php


    To find out what you have installed - what's the output of 'rpm -qa | grep php-'?

    To remove a version...just run 'yum remove php-*' Note you will have to reinstall several of the other ClearOS App's again afterwards.
    The reply is currently minimized Show
  • Accepted Answer

    Sigaud
    Sigaud
    Offline
    Tuesday, June 14 2011, 11:31 AM - #Permalink
    Resolved
    0 votes
    [root@system ~]# yum repolist
    Loading "kmod" plugin
    Loading "protect-packages" plugin
    repo id repo name status
    atomic CentOS / Red Hat Enterprise Linux $relea enabled
    base-console ClearOS Enterprise 5.2 - Console enabled
    base-kernels ClearOS Enterprise 5.2 - Kernels enabled
    base-os ClearOS Enterprise 5.2 - OS enabled
    base-supplements ClearOS Enterprise 5.2 - Supplements enabled
    base-updates ClearOS Enterprise 5.2 - Updates enabled
    clearcentos-os ClearOS 5.x - Minified CentOS - OS enabled
    clearcentos-updates ClearOS 5.x - Minified CentOS - Updates enabled

    this is what I typing : yum repolist
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 14 2011, 09:02 AM - #Permalink
    Resolved
    0 votes
    Hi Sigaud, the 5.2.17 version is in the timb repo. 5.3.6 is in the timb-testing repo. Have you enabled both by mistake?

    What's the output of 'yum repolist'
    The reply is currently minimized Show
  • Accepted Answer

    Sigaud
    Sigaud
    Offline
    Monday, June 13 2011, 07:14 PM - #Permalink
    Resolved
    0 votes
    Good evening

    I have a little problem

    Following a trouble with my server I've reinstalled on a new pc
    With the Tim update
    Instead of the update vertion in Php 5.2.9 or 5.2.17
    I find myself with 5.3.6 but my website is not for this version
    The former update 5.2.17 no longer available
    To give me the manipulations and / or files to install the old version
    Thank you in advance
    The reply is currently minimized Show
  • Accepted Answer

    Kevin Dika
    Kevin Dika
    Offline
    Wednesday, May 04 2011, 05:46 PM - #Permalink
    Resolved
    0 votes
    How-To is now live

    You can find it here

    upgrade to 5.2.17
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 04 2011, 10:55 AM - #Permalink
    Resolved
    0 votes
    Hi! the instructions in my post above for 5.2.17 using the Yum repo work OK?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 04 2011, 09:58 AM - #Permalink
    Resolved
    0 votes
    Hey time I saw the read me in the tim80 dir so some of the links are broken
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, March 09 2011, 04:21 PM - #Permalink
    Resolved
    0 votes
    UPDATE - You can now install PHP 5.2.17 via yum

    Setup the community repo as per instructions HERE

    Then run:-
    yum --enablerepo=timb upgrade php


    (PHP-5.3.5 lives in the timb-testing repo)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 26 2011, 08:26 PM - #Permalink
    Resolved
    0 votes
    Hi Tim,

    Thanks for your help, still had the downloaded 5.2.9 rpm 'lying around' as fall back. Was glad that I finally got it working again yesterday, had to reinstall eGroupware as well.
    What I noticed was that in the 5.3.5 version the php-pear module didn't work anymore (got a lot of php errors, so this should probably also be compiled and packaged.

    When I find some spare time, will install 5.2.17 again en go through the log files to see what exactly is / caused the white page.
    unfortunately I do not have a test environment so all these 'experiments' are taking place in my production environment, so not to keen on doing that again with limited time :huh:

    will report back when I have some new info / insights.
    Thanks,
    Ruud.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 26 2011, 03:44 PM - #Permalink
    Resolved
    0 votes
    Hi Ruud, sorry to hear that it no longer works. That release note is for PHP 5.3 versions only...i'm suprised if you also have the same issue with 5.2.17

    Are you able to provide any logs? clues can usually be found in /var/log/httpd/access_log or error_log

    P.S I've also made 5.2.9 available again if you need it as I beleive this was the last working version you had installed?
    ftp://www.timburgess.net/php-5.2.9
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 26 2011, 06:34 AM - #Permalink
    Resolved
    0 votes
    Tim Burgess wrote:
    Hi Ruud, thanks for the description - doing it in one batch as you say should satisfy 'yum' and your RPM dependency problem :)

    Hi Tim,
    good news: that indeed did the trick! was able to update to php-5.2.17
    but.... now I run into eGroupware not working with that version. supposedly there is an error with some php packages that result in a segfault error, below the description from the release notes:
    # PHP 5.3 < 5.3.3 is known to segfault (blank screen) with EGroupware:
    * nothing EGroupware can do to fix that :-(
    * either use a current 5.2 or at least 5.3.3
    * PHP 5.3.3 from openSUSE 11.*, IUS Community repo for RHEL 5 and Mac ports seems to work fine
    * there are reports that PHP 5.3.3 from Ubuntu 10.10 or Debian unstable still segfault, some say it is caused by some Debian spezific patches ...
    * there are reports PHP 5.3.3-4 currently in Debian sid(unstable) has no more segfaults and might get allowed into Debian 6/Squeeze


    I have asked if there is a way of confirming that this is indeed the error I have (tried both 5.2.17 and 5.3.5 versions)
    to be continued..
    regards,
    Ruud.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 25 2011, 02:07 PM - #Permalink
    Resolved
    0 votes
    Hi Ruud, thanks for the description - doing it in one batch as you say should satisfy 'yum' and your RPM dependancy problem :)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 25 2011, 02:00 PM - #Permalink
    Resolved
    0 votes
    Tim Burgess wrote:
    Hi Ruud, it already happens - the php-process RPM does indeed "provide" php-posix. Did you manage to install the php-process RPM? where in the installation does error occur? I noticed the eGroupware isn't RPM based

    Hi Tim,
    thanks for looking into this.
    eGroupWare is currently installed via a maintained repo (yum install egroupware), this is new in version 1.8 and which means that it also provides regular updates when running yum update
    .
    * doing this from the top of my mind *
    It goes wrong when running the yum localinstall on your downloaded php rpm's.
    An error is thrown that egroupware requires php-posix (checking dependencies?). This error stops the yum process.
    As I see it now, the php-process rpm is installed in a 'second batch' allong with some other needed rpm's, but can't be installed because the first batch never gets installed due to the error.

    What I will do tonight (when at home) is to move the php-process (and the other needed) RPM(s) from the extra directory to the base directory and then run yum localinstall (merging the two yum batches), maybe it is as simple as that.

    Will report back with success or fail and in case of the latter with error report.

    Thanks,
    Ruud.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 25 2011, 12:38 PM - #Permalink
    Resolved
    0 votes
    Hi Ruud, it already happens - the php-process RPM does indeed "provide" php-posix. Did you manage to install the php-process RPM? where in the installation does error occur? I noticed the eGroupware isn't RPM based

    %package process
    Summary: Modules for PHP script using system process interfaces
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    Provides: php-posix, php-sysvsem, php-sysvshm, php-sysvmsg

    %description process
    The php-process package contains dynamic shared objects which add
    support to PHP using system interfaces for inter-process
    communication.


    [root@server ~]# rpm -qlp --provides /var/ftp/php-5.2.17/extra/php-process-5.2.17-1.clearos.i686.rpm
    config(php-process) = 5.2.17-1.clearos
    php-posix <<<<<<<
    php-sysvmsg
    php-sysvsem
    php-sysvshm
    posix.so
    sysvmsg.so
    sysvsem.so
    sysvshm.so
    php-process = 5.2.17-1.clearos
    /etc/php.d/posix.ini
    /etc/php.d/sysvmsg.ini
    /etc/php.d/sysvsem.ini
    /etc/php.d/sysvshm.ini
    /usr/lib/php/modules/posix.so
    /usr/lib/php/modules/sysvmsg.so
    /usr/lib/php/modules/sysvsem.so
    /usr/lib/php/modules/sysvshm.so
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 25 2011, 06:37 AM - #Permalink
    Resolved
    0 votes
    Tim Burgess wrote:
    Ruud, php-posix is provided by the php-process RPM in 5.2.17 (and prior versions I believe from .10 upwards). You can find it here
    http://download.clearfoundation.com/community/timb80/php-5.2.17/extra/php-process-5.2.17-1.clearos.i686.rpm

    Hi Tim,
    I keep getting tht error the php-posix is missing. Posted this over at the eGroupWare mailinglist and got the following answer:
    We usually use the IUS Community Repository for that purpose.
    If one package contains other packages it usually "provided" them (in rpm terms). Seems like the packages you use don't. Maybe you can report that problem, where you got the packages from.
    Ralf

    I saw over at the Collet forum that there was also an issue with the posix extensions (some old thread) on his packages.

    Is this something that needs to parameterized (not even sure if this word exists :woohoo: ) when compiling the packages?

    regards,
    Ruud.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 20 2011, 09:20 AM - #Permalink
    Resolved
    0 votes
    Ruud, php-posix is provided by the php-process RPM in 5.2.17 (and prior versions I believe from .10 upwards). You can find it here
    http://download.clearfoundation.com/community/timb80/php-5.2.17/extra/php-process-5.2.17-1.clearos.i686.rpm
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 20 2011, 06:04 AM - #Permalink
    Resolved
    0 votes
    Tim Burgess wrote:
    Hi Ruud, yes it will upgrade your existing PHP version (5.1.6 or 5.2.9 or 5.2.16 etc..)

    Hi Tim, thanks for your answer.
    had to revert.... missing the PHP-Posix rpm (needed for eGroupWare), made a topic on their forum to see how to overcome :(
    regards,
    Ruud.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 19 2011, 01:02 PM - #Permalink
    Resolved
    0 votes
    Hi Ruud, yes it will upgrade your existing PHP version (5.1.6 or 5.2.9 or 5.2.16 etc..)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 19 2011, 07:03 AM - #Permalink
    Resolved
    0 votes
    Tim Burgess wrote:
    You need to install them using yum - i've amended the instructions so that it installs the dependancies in the same folder... try the following
    mkdir /var/tmp/php-5.2.17
    cd /var/tmp/php-5.2.17
    wget ftp://download.clearfoundation.com/community/timb80/php-5.2.17/*.rpm
    yum --nogpgcheck localinstall *.rpm
    service httpd restart

    Hi Tim,
    thanks for providing the new versions.
    Just a quick (and lazy question ;)), when running the steps above, will 5.2.17 upgrade the installed 5.2.9 or will it be installed alongside this version?
    thanks in advance,
    regards,
    Ruud.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 18 2011, 11:17 PM - #Permalink
    Resolved
    0 votes
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 09 2011, 08:29 PM - #Permalink
    Resolved
    0 votes
    You need to install them using yum - i've amended the instructions so that it installs the dependancies in the same folder... try the following
    mkdir /var/tmp/php-5.2.17
    cd /var/tmp/php-5.2.17
    wget ftp://download.clearfoundation.com/community/timb80/php-5.2.17/*.rpm
    yum --nogpgcheck localinstall *.rpm
    service httpd restart
    The reply is currently minimized Show
  • Accepted Answer

    Sigaud
    Sigaud
    Offline
    Sunday, January 09 2011, 03:16 PM - #Permalink
    Resolved
    0 votes
    I already installed the 3 files Additional mentions add later but the error is always the same.
    Is necessary you put these files in the same directory as the patch or the directory extra

    Thank you in advance for your reply
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 09 2011, 02:15 PM - #Permalink
    Resolved
    0 votes
    See the post at the top of this page (RobA)

    You can download the extra RPMs from the same folder.
    ftp://download.clearfoundation.com/community/timb80/php-5.2.16/
    The reply is currently minimized Show
  • Accepted Answer

    Sigaud
    Sigaud
    Offline
    Saturday, January 08 2011, 10:21 PM - #Permalink
    Resolved
    0 votes
    Error: Missing Dependency: libt1.so.5 is needed by package php-gd
    Error: Missing Dependency: libsqlite.so.0 is needed by package php-pdo
    Error: Missing Dependency: libedit.so.0 is needed by package php-cli

    I have always the same message despite the update pack

    Please help me
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 06 2011, 09:27 AM - #Permalink
    Resolved
    0 votes
    Hi Dirk, ClearOS still uses PHP 5.1.6, it actually uses a newer version 5.2.10 seperately for the webconfig!

    I believe ClearOS6.x will be using PHP5.3.x (as per the RHEL6 beta)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 05 2011, 11:54 PM - #Permalink
    Resolved
    0 votes
    Thanks Tim. Turns out I've got 5.2.13 so I think I upgraded somewhere along the way not too long ago and I think I had done it based on one of your posts, now that I vaguely recollect. Looks like ClearOS stops at 5.2.10 based on the repos, so that has to be the case. What will COS6.0 be using, any idea? I may just wait until that comes along.
    The reply is currently minimized Show
  • Accepted Answer

    RobA
    RobA
    Offline
    Wednesday, January 05 2011, 08:44 PM - #Permalink
    Resolved
    0 votes
    Tim Burgess wrote:
    Hi Rob, they live in the 'extra' folder
    http://download1.clearfoundation.com/community/timb80/php-5.2.16/extra/t1lib-5.1.1-7.el5.i386.rpm

    Looks like I put these two in the wrong place
    http://download1.clearfoundation.com/community/timb80/php-5.3.4/extra/libedit-2.11-2.20080712cvs.el5.i386.rpm
    http://download1.clearfoundation.com/community/timb80/php-5.3.4/extra/sqlite2-2.8.17-2.el5.remi.i386.rpm


    Brilliant.

    Thanks muchly. That worked great!

    -Rob A>
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 05 2011, 07:37 PM - #Permalink
    Resolved
    0 votes
    Hi Dirk, the PHP version provided with ClearOS has back ported security fixes, the only reason you might make the leap to 5.2 is if your particular software required it. However if you are running 5.2.9 I would recommend the upgrade especially if it's a site that is attracting more hits - there are a lot of fixes between this and .16
    http://www.php.net/ChangeLog-5.php#5.2.16
    just make sure you check the contents of /etc/php.ini before and after the uprgade :)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 05 2011, 07:30 PM - #Permalink
    Resolved
    0 votes
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 05 2011, 06:29 PM - #Permalink
    Resolved
    0 votes
    Hey Tim, do you think it's a good idea to upgrade PHP or could it have an adverse affect on my Joomla developed website? I would hate after all the work I've put into it to break it. Thanks.
    The reply is currently minimized Show
  • Accepted Answer

    RobA
    RobA
    Offline
    Wednesday, January 05 2011, 06:06 PM - #Permalink
    Resolved
    0 votes
    Thanks for the update.

    I tried and got a few failed dependencies:

    Error: Missing Dependency: libt1.so.5 is needed by package php-gd
    Error: Missing Dependency: libsqlite.so.0 is needed by package php-pdo
    Error: Missing Dependency: libedit.so.0 is needed by package php-cli


    Is there a different repo I need to add?

    -Rob A>
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 05 2011, 05:42 PM - #Permalink
    Resolved
    0 votes
    UPDATE: 5.2.16 now available
    ftp://download.clearfoundation.com/community/timb80/php-5.2.16/

    mkdir /var/tmp/php-5.2.16
    cd /var/tmp/php-5.2.16
    wget ftp://download.clearfoundation.com/community/timb80/php-5.2.16/*.rpm
    yum --nogpgcheck localinstall *.rpm
    service httpd restart


    Dependancies and extras can be found here
    http://download.clearfoundation.com/community/timb80/php-5.2.16/extra/

    I will be removing 5.2.9 from the server in due course
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 08 2010, 02:58 AM - #Permalink
    Resolved
    0 votes
    Thanks for the help Tim. I did find an extra ini file in /etc/php.d.. php 5.2.9 is up and running great.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, November 07 2010, 07:53 PM - #Permalink
    Resolved
    0 votes
    Hi Kevin, unfortunately I don't use the readline module so can't comment. If it's already loaded then it should be harmless...do you have any extra ini files in /etc/php.d/?

    It looks like it's trying to load the module twice, see if you can find any spare "extension=readline.so" lines anywhere
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 06 2010, 02:22 PM - #Permalink
    Resolved
    0 votes
    Tim,

    Thanks, Got the files from Rpmforge, and installed them. Now running php 5.2.9. I get only one warning..

    [root@iserver ~]# php -v
    PHP Warning: Module 'readline' already loaded in Unknown on line 0
    PHP 5.2.9 (cli) (built: Dec 23 2009 12:40:30)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 06 2010, 07:26 AM - #Permalink
    Resolved
    0 votes
    Tim,

    Ok, this is probably a n00b question, but now when I run:


    php -v


    I get:


    [root@webserver php5.2]# php -v
    PHP Warning: PHP Startup: geoip: 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 Warning: PHP Startup: mcrypt: 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 Warning: PHP Startup: mhash: 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 Warning: PHP Startup: readline: 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 Warning: PHP Startup: rrdtool: 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.9 (cli) (built: Dec 23 2009 12:40:30)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies


    Any suggestions on a solution to these PHP warnings?

    Thanks in advance,

    Bob
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 06 2010, 06:30 AM - #Permalink
    Resolved
    0 votes
    Tim,

    Just used your files and directions to upgrade my PHP version successfully. Thank you for your help and hard work.

    Bob
    The reply is currently minimized Show
  • Accepted Answer

    Friday, November 05 2010, 10:13 PM - #Permalink
    Resolved
    0 votes
    Those are PHP extras...not normally needed for a simple upgrade.

    If you definitely want them you'll need to find the relevant RPM's from EPEL,CentOS or Rpmforge

    You'll need Freetds, libtidy, and libedit (all el5 RPM's will be fine)
    The reply is currently minimized Show
Your Reply