How do you upgrade PHP anyway?

How do you upgrade PHP anyway?

Timothy Takemoto -
回帖数:4

Does anyone know where there is a good explanation of how to upgrade php on Linux, ideally RedHat 9. 

The machine is using PHP 4.2 and I think that is rather old.
 
I tried "up2date" which updated all sorts of things for me (I was very impressed, I thought that the Redhat had discontinued the service) but php did not seem to be one of them, I think, since I am still getting errrors with a php statement not supported by 4.2 on a recent installation of mediawiki.

I am surprised because, one of the programs that was made "up2date" was "httpd" which is the apache server I believe. I tried turning my apache server on and off.

I am not sure what apt or yum is but I presume that they are like up2date - they check to see what things need to be updated and then update them? I tried typing apt and yum in my rood directory but none of the nice things happened.

I would rather not have to compile anything.
Timothy

回复Timothy Takemoto

Re: How do you upgrade PHP anyway?

Jeffery Watkins -
I can upgrade through the Web Host Manager software provided with the server I have.  If you do not have such an option, I think this might be a good place to start: http://www.php.net/manual/en/install.php

Jeff
回复Jeffery Watkins

Re: How do you upgrade PHP anyway?

Timothy Takemoto -

Dear Jeff,

Thanks very much. I have webmin (just lately I have worked out how to get to it over the web, so I can control it from home or whereever) but  I do not know how how to use webmin to update php.

The pages you showed to me looked rather arcane for my small brain.

And since I updated apache (or httpd) I am surprised php was not updated too. Perhaps I need to shutdown and start up the physical device and not just the apache server.

Timothy

回复Timothy Takemoto

Re: How do you upgrade PHP anyway?

Bob Boufford -

Timothy,

What's your overall AMP setup? If you can, I would recommend dumping all the apache/php/mysql RPM stuff provided with RH Linux and just go with XAMPP from Apache Friends (http://www.apachefriends.org/). Since I went with XAMPP, it's been much easier to maintain and upgrade with upgrade packages that take care of everything at one time. The other nice feature is the ability to have pretty much the same AMP setup on my Windows (XP, 2k, USB key), RH Linux and Solaris boxes. (I see they are now developing a Mac OS X package.)

No compiling or RPM hassles.

Cheers,

Bob

回复Bob Boufford

Re: How do you upgrade PHP anyway?

Timothy Takemoto -

Bob, 

Thank you for the suggestion.

I am not sure what my AMP setup is. It came with the disks that I used to install Redhat 9, I think. I got it near to the RH9 end of file but used up2date (I think, click, click) from their site a couple of times before I could not access the site anymore.

As I say above I may have misinterpretted the "end of life" as being more serious that it is because "up2date" as a command line command works and a very pleasant Redhat window told me that various things needed upgrading, resolved the rpms (whatever that means), downloaded a lot of stuff including open office, and, I think, installed it.

But dumping all I have sounds scary....but all the same, I will have a look at XAMP.

I am using Easyphp on my windows boxes because it is one click. With XAMP one has to start XAMP first. A two click operation.

Are there other RH9 users here? I was (am) mightily impressed with it. It was free, looks like Windows, and installed off the disks, with a few clicks, in no time at all to give a novice a web server. But then the rpms and all...It has php 4.2 I beleive.

Timothy