You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Matt Sergeant <ma...@sergeant.org> on 2001/05/07 00:35:47 UTC
Re: PHP4 causes DBI connections to fail silently in mod_perl
On Sun, 6 May 2001, Rodney Broom wrote:
> Hi all,
>
> The other day I installed PHP4 as a DSO. No problem, it works fine. Today I was
> adding a Perl handler that needs a DB connection (MySQL). Nothing special, I
> used DBI. But at the time of the connection, the handler stops. No error, no
> message, no anything.
>
> - I tried to get a DB handle in an Apache::Registry (mpl) script, same
> thing.
> - I tried to get a DB handle from a CGI script, that works.
> - I turned off PHP in the conf and retried the mpl script, it connects to
> the DB correctly.
>
> I've searched the archives for this list, and done some searching on PHP sites
> and on the web, but haven't found anything specific. Has anybody else seen this?
I may be wrong, but isn't this the issue where you have to compile PHP4
*without* the MySQL libraries. MySQL still works from PHP4, provided you
have the MySQL libs on your machine somewhere else.
I think there's an FAQ about this on the PHP4 site.
--
<Matt/>
/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\
Re: PHP4 causes DBI connections to fail silently in mod_perl
Posted by Remco Schaar <re...@ch.twi.tudelft.nl>.
On Sun, 6 May 2001, Matt Sergeant wrote:
Hi everyone,
> On Sun, 6 May 2001, Rodney Broom wrote:
> > Hi all,
>
> I may be wrong, but isn't this the issue where you have to compile PHP4
> *without* the MySQL libraries. MySQL still works from PHP4, provided you
> have the MySQL libs on your machine somewhere else.
>
> I think there's an FAQ about this on the PHP4 site.
AFAIK: there is a warning in the configure-script of php4 as well. It
tells you to use your local mysql-includes when using other modules, like
mod_perl...
Greetings,
Remco Schaar