Hi

Does anyone know what's the best way to upgrade the Redhat's PHP RPM. I'm on Redhat 9, but the php is still on version 4.2.2 which has some problems with $_SESSION variables.

Is there a way i can do an upgrade to 4.3.2 on the existing RPM without waiting for RH to release a more up to date version?

I know the alternative is just to re-build my own Apache and PHP, but I would prefer to explore the RPM upgrade first.

any help

Thanks

d.

    Hi,

    in most cases I choose to download the most recent source rpm and to patch the specification file and maybe the patches where needed and to rebuild the package. This might be some kind of complicated but ensures that php will fit perfectly into the system afterwards since it will be linked against the already installed packages. The downside of this is that you will have to install every package needed to build the rpm unless you don't need all the functionality.

    Thomas

      That sounds complicated.

      so there's no way I can just upgrade the rpm using a source rpm downloaded from some where else to rebuild the RH php install?

      looks like maybe i should consider just recompiling a whole new install.

      thanks

        If you want the newly compiled php to fit perfectly into the existing RedHat installation the only reliably solution would be to use the latest source rpm package and to patch it.

        You might also try the latest source rpm from

        [url]ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/[/url]

        and try to rebuild it on RedHat 9 but I don't know if it works 🙁

        Using another source rpm from somewhere will most probalby cause more problems than using one of the RedHat packages.

          a month later

          Thanks for the idea tsinka, rebuilding the latest Rawhide source RPM using Redhat 9 worked very well, with no patching required.

          I did removed pspell support from the RPM because Redhat 9 uses Aspell-0.33 while Rawhide has moved up to Aspell-0.5. I also removed support for SNMP from the RPM because the source wouldn't compile correctly and since I don't use SNMP I didn't want to mess with it.

          Thanks again,

            6 months later

            Hi jharwell,

            I encountered the same problem and tried to do the same thing.
            However, the outcome wasn't that good as yours. 🙁
            As I'm almost running out of time in resolving this problem,
            I was wondering if you can share me that PHP RPM you rebuilt ?
            Hope that's ok to you ?
            Could you send it to me ?
            My email address is cwayne@ms6.hinet.net

            Thx in adv.

            Wayne

              Write a Reply...