Derek Kalweit wrote:
> Hello. I just got a dedicated Fedora Core 1 box at my ISP. It is >'up to date' according to up2date and yum, but I know there are newer >versions of some things, such as PHP(which I need to upgrade for >security reasons), and MySQL(I want 4.x, not 3.x). These products were >installed using the standard RPM packaging method. I can't find newer >RPM's for php, and I'm thinking other packages may be the same way-- >what's the recommended way to upgrade a box that an RPM doesn't exist >for the newer version(yet?)? Maybe there are RPM's somewhere I'm not >looking? I've tried rpmfind, and php's own site for a php upgrade, and >found none. > > I've always had bad luck trying to wing this sort of thing(libary >version problems, etc.), so I figured I'd ask some people that work >with FC regularly... Thanks. > > I'm not sure that "regularly" describes me completely accurately, as I haven't done my PHP/MySQl for a couple of weeks, but I have gone down the same road that you are staring at right now.
The short answer on PHP, as I recall, is that they (the PHP folks) don't produce RPMs. They expect you to upgrade via your distro's solution, or to compile from source and install yourself. I was displeased with both asnwers, as the FC1 PHP installation (and, actually, the MySQL installation too) are "non-standard". IOW, they put stuff in weird places. Weird places by themselves aren't bad, but then when you ask questions on the mysql or php lists, people will answer, "Oh, well if you're using ... then my answer won't work." /sigh/
What I did was entirely remove both PHP and MySQL, and then d/l MySQL 4 and install it from scratch, and d/l, compile and install PHP 4 from scratch. The first time I tried this, I didn't remove the old versions, and then suddenly I had remnants of the old version in the aforementioned 'weird' places.
I've written up a 'HOWTO' that describes the steps I took that might be helpful - check out the list of Whitepapers at www.hentzenwerke.com. I did this last September, maybe?, to give you an idea of about where to look.
If you run into troubles, lemme know. I'm probably going to do the same thing to this new FC3 box this weekend.
Whil
©2004 Whil Hentzen |