Hi David,

you should start by checking your current php instalation:

# rpm - qa | grep php

This will show you all packages which contains "php". It will be something
like following:
php-4.1.2-7.2.4
php-manual-4.0.6-15
php-imap-4.0.6-15
php-ldap-4.0.6-15
php-mysql-4.0.6-15
php-odbc-4.0.6-15
php-pgsql-4.0.6-15

Now you know what packages you have installed on your system. Now go to Red
Hat web site to find all this packages - you should to upgrade all of them.
If you have Red Hat Linux 7.2, go to
http://rhn.redhat.com/errata/RHSA-2002-102.html and find all of this
packages and download them. Be sure you are downloading rpms for your
version (ie. 7.2).

If you will have all these files downloaded, write the folowwing rpm command
whitch will update all of packages:

# rpm -Uv php-4.1.2-7.2.4.i386.rpm php-manual-4.1.2-7.2.4.i386.rpm \
  php-imap-4.1.2-7.2.4.i386.rpm php-ldap-4.1.2-7.2.4.i386.rpm \
  php-mysql-4.1.2-7.2.4.i386.rpm php-odbc-4.1.2-7.2.4.i386.rpm \
  php-pgsql-4.1.2-7.2.4.i386.rpm

All the packages are on the one line. Something like following:
# rpm - UV package_1 package_2 ... packege_n

By this way you will update all the packages and there shouldn't be any
"dependencies" error.

If yes, please let me know. I'm not an expert for Red Hat Linux but I am
yousind this distribution and I am doing it by this way... and it's works
for me.

Best regards,
Jan


----- Original Message -----
From: "David Yee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 08, 2002 10:59 PM
Subject: [PHP] Upgrading PHP on Redhat


> Hi all. What's the correct procedure to upgrade PHP (in this case 4.0.6)
on
> a Red Hat system?  Usually I just get the PHP tarball compile it myself
but
> for this particular machine I just want to upgrade the Redhat PHP that's
on
> the system.  As you guys know Redhat puts its PHP (and Apache) files in
> different locations- e.g. php.ini is in /etc.  I looked for some RPMs but
I
> kept getting failed dependencies when trying to install them- e.g.:
>
> # rpm -Uvh php-4.1.2-7.2.4.i386.rpm
> error: failed dependencies:
>         php = 4.0.6-15 is needed by php-manual-4.0.6-15
>         php = 4.0.6-15 is needed by php-imap-4.0.6-15
>         php = 4.0.6-15 is needed by php-ldap-4.0.6-15
>         php = 4.0.6-15 is needed by php-mysql-4.0.6-15
>         php = 4.0.6-15 is needed by php-odbc-4.0.6-15
>         php = 4.0.6-15 is needed by php-pgsql-4.0.6-15
>
> I'm not an expert in using rpm so I'm probably doing something completely
> wrong???
>
> David
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to