php/mysql setup issues
crschmidt at crschmidt.net
crschmidt at crschmidt.net
Tue Apr 5 14:34:01 EDT 2005
On Tue, Apr 05, 2005 at 02:28:06PM -0400, Drew Van Zandt wrote:
> I'm being driven insane... the php/mysql installation on one of my
> machines keeps getting broken, and I end up with the error:
>
> Fatal error: Call to undefined function: mysql_connect() in ........
> (when I try to use a script that accesses mysql)
>
> Now, I have them both installed... there's a line in my
> /etc/php4/apache/php.ini that says:
> extension=mysql.so
First things first:
echo "<?phpinfo()?>" > phpinfo.php
Then visit the phpinfo.php file in your browser, and see if the mysql
extension is installed. (If it is, you'll get a section all about
mysql.) http://crschmidt.net/phpinfo.php is example phpinfo output.
I expect that you don't see that, and I expect that it's probably
because your extensiondir is set to something that isn't where mysql.so
is, but I'm not smart enough to know for sure. I'd start there and move
on though.
If you can't figure it out, a link to the phpinfo() page may help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20050405/70e596f8/attachment.bin
More information about the gnhlug-discuss
mailing list