Entry
How to make MySQL support into an installed PHP without reinstalling other modules?(On apache, LINUX)
May 18th, 2000 20:14
Nathan Wallace, William Holt, Robin Cook
If you are using the Redhat RPMs you can get the src RPM with just a bit
of editing make the mysql module. Or if you want to do it by hand get
the src RPM and look at how it is done in the php.spec file.
To use the src RPM to build the mysql module you need to add this to the
php.spec file ...
%package mysql
Group: System Environment/Daemons
Requires: php
Prereq: /usr/bin/perl
Provides: php_database
Obsoletes: mod_php3-mysql
Summary: A MySQL database module for PHP3.
BuildPrereq: MySQL-devel
%description mysql
The php-mysql package includes a dynamic shared object (DSO) that can
be compiled in to the Apache Web server to add MySQL database
support to PHP3. MySQL is an object-relational database
management system that supports almost all SQL constructs. PHP is an
HTML-embedded scripting language. If you need back-end support for
MySQL, you should install this package in addition to the main
php package.
... and uncomment all the other mysql entries. Then rebuild the binary
RPMs with rpm -bb php.spec.