"be consistent" | |
PerlMonks |
mod_perl breaks MySQL connectivity...by Anonymous Monk |
on May 22, 2001 at 08:54 UTC ( [id://82163]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: I have recently installed mod_perl on my development server to assess the performance benefits often claimed of it. For the most part I have been absolutely stunned by the massive speed increases I have witnessed through its usage. However, I have come up against a major barrier: I can't connect to any MySQL DB server(s) from scripts running under mod_perl. If I disable mod_perl, then these same scripts work fine. I am at a loss as to what's going wrong. I have discussed this on various mailing lists without resolving the problem. Now, I throw myself on the mercy of our esteemed monks - in the hope that I can get these scripts working. Server Configuration:
The DB works fine: I can connect via MySQLAdmin; I can connect via PHP4; I can connect via CGI; I cannot connect via mod_perl. The relevant section of "httpd.config" is as follows:
A minimalist Perl program that demonstrates my problem is as follows:
The relevant output from "error.log" reads:
Can anyone tell me what's going wrong, before I tear out my few remaining strands of hair and go in search of a gun and belltower? Thanks in advance Edit: chipmunk 2001-05-22
Back to
Seekers of Perl Wisdom
|
|