Click to See Complete Forum and Search --> : Configure PHP to link against the real MySQL libraries


badcpu
05-14-2004, 04:01 PM
I have apache+php+mysql installed and working normally without any problems on a FreeBSD 4.9 machine. I installed the above via the port system.

Now I am trying to get mod_log_sql working on the above server, however I am getting Apache segfaults. In the mod_log_sql documentation it says the following:

This occurs if you compiled PHP with MySQL database support. PHP utilizes its internal, bundled MySQL libraries by default. These conflict with the ``real'' MySQL libraries linked by mod_log_sql, causing the segmentation fault.

The solution is to configure PHP to link against the real MySQL libraries and recompile mod_php. Apache will run properly once the modules are all using the same version of the MySQL libraries.

Now my question is simple. How would I go about getting PHP linking against the real MySQL libraries ?

Thank you in advanced.
badcpu

dalecosp
05-15-2004, 04:04 PM
From the PHP .configure script: --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base directory.
If unspecified, the bundled MySQL library will be used."So, *probably* the answer is to set up your own configuration and specifiy the path to the MySQL libraries instead of using the NCurses configuration "GUI" ...