[lug] Quick Fix for PHP/MySQL Undefined Function Problem?
John Hernandez
John.Hernandez at noaa.gov
Tue Aug 31 11:20:46 MDT 2004
Jeff Schroeder wrote:
> Bill wrote:
>
>
>>However, on that one I can't get the PHP db
>>functions to work via the web. I get, for example, "Fatal error: Call
>>to undefined function: mysql_pconnect()"
>
Do you have all the same php and mysql packages installed on both
machines? Specifically, for RHL-derived distros, there's a package by
the name of 'php-mysql' that sounds like the ticket.
>
> That's an internal PHP function you're trying to call, and apparently
> it's not there on your production server. Are you sure you have
> identical versions of PHP on both servers? From your description it
> sounds like the test server's PHP has the MySQL functions in it, and
> the production one doesn't.
>
> (That seems odd, since PHP and MySQL are like hand and glove, and I'd be
> surprised if a packaged PHP doesn't include MySQL support. But who
> knows.)
>
> A possible solution would be to copy libphp4.so from the test server to
> the production one. I'm not sure that'll solve it, but I suspect
> that's where the MySQL functionality lives.
>
> HTH,
> Jeff
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>
--
| John Hernandez - NOAA Boulder NOC - 303-497-6392
| Mailstop R/OM62. 325 Broadway, Boulder, CO 80305
| PGP Public Key ID: 586A7E23
More information about the LUG
mailing list