Re: mysql5 with php4
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Thu, 13 Jul 2006 18:51:14 +0200
Eric wrote:
I want to upgrade my database to 5.0 while using php4
we have been using php4 provided by RHEL, which i don't want to
recompile myself right now, because i'll have to do it everytime there
is an update.
What i did was instal mysql's devel compat and client packages.
Then got the source rpm from rhel.
cd /usr/src/redhat/BUILD/php-4.3.2/ext/mysql/
phpize
./configure --with-mysql=/usr
make
cp ../modules/mysql.so /usr/lib/php4/
I would suggest you modify your /usr/src/redhat/SPECS/php.spec instead, as you do want the build to be as similar to the official RHEL version as possible and by default just rebuilding the sourceRPM you will get the mysql support too.
rpmbuild -ba /usr/src/redhat/SPECS/php.spec
this will generate new RPMs in your /usr/src/redhat/RPMS/i386, I do suggest you update the RPM revision number with one, this way you can update the installed version with 'rpm -Uvh <packages>'.
I do suggest you use the sourceRPM from Fedora Core 5/6 when you build your new mysql, this way you will keep the RPM system working.
//Aho
.
- Follow-Ups:
- Re: mysql5 with php4
- From: Eric
- Re: mysql5 with php4
- References:
- mysql5 with php4
- From: Eric
- mysql5 with php4
- Prev by Date: Re: www.somesite.com/123213 type pages
- Next by Date: Re: uploading a document and moving to a subfolder
- Previous by thread: mysql5 with php4
- Next by thread: Re: mysql5 with php4
- Index(es):
Relevant Pages
|