[lug] Quick Fix for PHP/MySQL Undefined Function Problem?
Hugh Brown
hugh at math.byu.edu
Tue Aug 31 15:36:15 MDT 2004
Bill Thoen wrote:
> On Tue, 31 Aug 2004, Jeff Schroeder wrote:
>
>
>>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.
>
>
> Calling phpinfo(), the PHP versions are the same. However, I forgot to
> mention that I built PHP and MySQL from source, and I may have doen
> something different in the switches. I remember I had a lot of trouble
> getting compatible versions of Apache and PHP between the machines because
> of all the differences with Apache 2.0.
>
>
>>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.
>
>
> I have that one on both machines in /usr/lib/httpd/modules/.
>
> - Bill
>
>
On a stock redhat 9 install, there's a package called php-mysql which
has the files /etc/php.d/mysql.ini and /usr/lib/php4/mysql.so
So I'd check to see if you've got those files on one machine but not the
other.
HTH,
Hugh
Hugh
More information about the LUG
mailing list