Click to See Complete Forum and Search --> : PHP4, RedHat 7.1, MySQL


mojokitten
07-20-2001, 11:38 AM
I realize that several people have posted similar questions, but I have also noticed that none of them have been answered, so I'll try this again:

I have done a standard full install of RH 7.1 on my PIII. Naturally, the PHP rpm was build without mysql support. OK. So, I try to uninstall the php-4.0.4pl1-9 package with --nodeps and then install the src RPM. I attempted to chenge the code in php.spec from --without-mysql to --with-mysql. I do an install of php-4.0.4pl1-9.src.rpm and then restart apache. Still no mysql support. so I rpm -ivv --replacepkgs php-4.0.4pl1-9.i386.rpm and restart. Still no support. I check the php.spec file: it's reset the --with-mysql to --without-mysql. I am at a complete loss. If I have to install php from a tar ball, am I going to have to completely reinstall apache from one as well? Or is there some way I can hack this rpm to get what I need done? I've read these forums and "Maximum RPM" until it feels as though my eyeballs are about to cross. Please help.

-j

niyogi
07-20-2001, 08:33 PM
I'm trying to figure out something similar. The question I have is how the heck do I get it so that the configuration options from the first install are completely wiped out.

-S

mojokitten
07-25-2001, 07:36 AM
OK. I finally got it figured out. I was using php4.0.4pl1, so that's what I'll use in the example

Download the source rpm (www.rpmfind.net

First, do

shell> rpm -e --no-deps php-4.0.4pl1-9

then

shell> rpm -ivvh php-4.0.4pl1-9.src.rpm

edit /usr/src/redhat/SPECS/php.spec

change --without-mysql to -with-mysql=/[DIR]

shell> rpm -bb /usr/src/redhat/SPECS/php.spec

restart apache, and you should be good to go.


As a forewarning, finding rpms for RedHat 7.x is a pain in the rear. If anyone has any leads, let me know?

-j

Anon
01-04-2002, 02:03 AM
I tried the above, and while everything worked....as soon as I tried to rebuild the php.spec I get the following errors:

error: failed build dependencies:
apache-devel is needed by php-4.0.4pl1-9
imap-devel is needed by php-4.0.4pl1-9
postgresql-devel is needed by php-4.0.4pl1-9