-   Red Hat (
-   -   Recompiling PHP4 on RHEL4 '--without-mysql' (

SlaughterB 12-05-2006 04:01 PM

Recompiling PHP4 on RHEL4 '--without-mysql'
One of the new webapps being supported on our RHEL4 Apache webserver is done in Python (mod_python), and uses MySQLdb to communicate with mysqld (or at least it wants to). All of the existing sites are done in PHP (mod_php) and use the built-in MySql library for data connections. The PHP configuration is '--with-mysql=shared,/usr' by default (RedHat Up2date RPM). I need to recompile PHP to be '--without-mysql' to allow me to load an external MySQL library into PHP (mysql.ini in /etc/php.d/) to permit both Python and PHP to communicate with mysqld simultaneously.

Being barely an intermediate sysadmin, I'm not entirely sure how to recompile PHP on a RedHat system without breaking the RPM (Up2date still needs to work). Can someone give me a quick how-to on this?

Lenard 12-05-2006 05:35 PM

Download the source rpm file, edit the spec file and build; rpmbuild -bb php.spec

All times are GMT -5. The time now is 09:50 PM.