in reply to Mac OS X 10.5.2 web server cannot connect to mysql

If it works from the command line, and doesn't from Apache, it's most likely an issue with the pathing -- you mention you have two different versions of Perl installed. (5.8 and 5.10) -- can they both see the module from the command line?

Also, are you using a full path in your shebang line, or just '#!perl' ? If the later, try changing it to a full path, so you know which version of perl it's trying to run. After that, the only thing I can think of is to write a CGI that dumps the contents of '@INC', and make sure the correct include directory is there ... if not, add it with 'use lib'

  • Comment on Re: Mac OS X 10.5.2 web server cannot connect to mysql

Replies are listed 'Best First'.
Re^2: Mac OS X 10.5.2 web server cannot connect to mysql
by Sarpedon (Initiate) on May 14, 2008 at 21:23 UTC
    Thanks for yr reply. The shebang is ok & the @INC is set up to point at MySQL bin etc. I feel the problem may be w/ Apache2 & MySQL. Regards, Sarpedon Jones