advanced noob needs help with rpm install of php 5

primesuspectprimesuspect Beepin n' BoopinDetroit, MI Icrontian
edited January 2009 in Science & Tech
Hey guys.

I'm working on upgrading php 4 on one of my servers to php 5. It took me ages to even find the right package. This is RHEL 4 x86-64 SMP.

I FINALLY found a package for php 5 built for x86-64. Now I just need to figure out how to upgrade.

when I run

[php]rpm -i php-5.1.4-1.x86_64.rpm[/php]

i get:

[php]file /etc/httpd/conf.d/php.conf from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /etc/php.ini from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /usr/bin/php from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /var/www/icons/php.gif from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9[/php]

ahh what do I do?

Comments

  • jhenryjhenry California's Wine Country
    edited July 2006
    Have you tried upgrading the package (up2date -u php)?

    Did you install directly from RPMs or did you use yum or up2date?

    What about using rpm -U php-5.1.4-1.x86_64.rpm, upgrading rather than installing?
  • primesuspectprimesuspect Beepin n' Boopin Detroit, MI Icrontian
    edited July 2006
    i tried that. i get a failed dependency:

    [php]rpm -U php-5.1.4-1.x86_64.rpm
    error: Failed dependencies: php = 4.3.9-3.9 is needed by (installed) php-pear-4.3.9-3.9.x86_64
    [/php]

    and when I try to upgrade the php-pear package, I get:

    [php] rpm -U php-pear-1.4.6-2.noarch.rpm
    error: Failed dependencies: php >= 5.1.0-1 is needed by php-pear-1.4.6-2.noarch[/php]

    yay!
  • jhenryjhenry California's Wine Country
    edited July 2006
    rpm -U php-5.1.4-1.x86_64.rpm php-pear-5.1.4-1.x86_64.rpm

    This is why I prefer compiling php by hand instead of RPMs. There's a lot less mess.

    EDIT: you beat me to it.

    EDIT2: Trying them both in one line should work
    BTW, get on MSN plz
  • primesuspectprimesuspect Beepin n' Boopin Detroit, MI Icrontian
    edited July 2006
    okay i solved some dependencies by up2date-ing the net-snmp packages, etc.. but there's still two left:

    [php]libmysqlclient.so.15()(64bit) is needed by php-mysql-5.1.4-1.x86_64
    libsqlite3.so.0()(64bit) is needed by php-pdo-5.1.4-1.x86_64[/php]

    i can't find those... arrrgh..

    this is RHEL 4 so it doesn't have yum. I'm using the RHEL repository. :werr:
  • primesuspectprimesuspect Beepin n' Boopin Detroit, MI Icrontian
    edited July 2006
    aargh!

    [php] rpm -i sqlite-devel-3.2.2-1.x86_64.rpm
    warning: sqlite-devel-3.2.2-1.x86_64.rpm: V3 DSA signature: NOKEY, key ID 443e1821
    error: Failed dependencies:
    sqlite = 3.2.2-1 is needed by sqlite-devel-3.2.2-1.x86_64
    [/php]
  • jhenryjhenry California's Wine Country
    edited July 2006
  • primesuspectprimesuspect Beepin n' Boopin Detroit, MI Icrontian
    edited July 2006
    what a nightmare. libmysqlclient.so.15()(x86_64) is required, but I cannot find it anywhere :-/
  • drasnordrasnor Starship Operator Hawthorne, CA Icrontian
    edited July 2006
    If you haven't already, try up2date'ing the entire system. That's usually a good way to flush out odd dependencies.

    -drasnor :fold:
  • primesuspectprimesuspect Beepin n' Boopin Detroit, MI Icrontian
    edited July 2006
    i did that. :(
  • jhenryjhenry California's Wine Country
    edited July 2006
    ...drumroll...

    We're back online. We decided to screw RPM and I compiled Apache and PHP by hand.
  • primesuspectprimesuspect Beepin n' Boopin Detroit, MI Icrontian
    edited July 2006
    thanks a TON john. you totally rock for this.

    Case closed - the answer : get someone who knows what they're doing to compile everything from source :p
  • ShortyShorty Manchester, UK Icrontian
    edited July 2006
    Thanks JH.. you rock sir! :D
  • ThraxThrax 🐌 Austin, TX Icrontian
    edited July 2006
    Aaaaand I knew this thread had something to do with our downtime. ;D
  • edited January 2009
    Hello,

    I have the same problem. I need some help to upgrade PHP 4 to PHP 5.1

    I installed PHP-4.3.9 and mysql-4.1.20-2.RHEL4.1.0.1 in my Redhat Server (Redhat 4 Enterprise).

    My PHP packages installed in my Redhat server:
    rpm -qa | grep php
    php-gd-4.3.9-3.22.9
    php-snmp-4.3.9-3.22.9
    php-4.3.9-3.22.9
    php-devel-4.3.9-3.22.9
    php-mysql-4.3.9-3.22.9
    php-ldap-4.3.9-3.22.9
    php-pear-4.3.9-3.22.9
    php-mbstring-4.3.9-3.22.9


    I installed Nagios, Centreon, Nagvis et Cacti using these packages.

    When I try to update to PHP-5.1.4, I get:
    rpm -U php-5.1.4-1.esp1.x86_64.rpm php-snmp-5.1.4-1.esp1.x86_64.rpm php-ldap-5.1.4-1.esp1.x86_64.rpm php-mysql-5.1.4-1.esp1.x86_64.rpm php-mbstring-5.1.4-1.esp1.x86_64.rpm php-devel-5.1.4-1.esp1.x86_64.rpm php-gd-5.1.4-1.esp1.x86_64.rpm php-pdo-5.1.4-1.esp1.x86_64.rpm

    error: Failed dependencies:
    php = 4.3.9-3.22.9 is needed by (installed) php-pear-4.3.9-3.22.9.x86_64


    I don't find the package php-pear-5.1.4-1.x86_64.rpm and when I try to upgrade the php-pear package, I get: rpm -U php-pear-1.4.6-2.noarch.rpm

    warning: php-pear-1.4.6-2.noarch.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
    error: Failed dependencies:
    php >= 5.1.0-1 is needed by php-pear-1.4.6-2.noarch


    How can I resolv it ?

    Thank you very much for your help

    Flipmode


Sign In or Register to comment.