Page 1 of 1

php and apache

Posted: Mon Apr 28, 2003 4:13 am
by Guy
I use redhat 8 with apache 2 and php4.2.2 that were installed with the Linux.
when I try to use mysql_connect() I get
Call to undefined function: mysql_connect()
although in php info in the configure command I have "with-mysql"
and mysql appears in dbx under supported databases
so why it's not working?
Thanks
Guy

Posted: Mon Apr 28, 2003 4:20 am
by volka
you probably need to install a php_mysql-package from your distribution-cd

im new to linux -

Posted: Mon Apr 28, 2003 6:43 am
by Guy
can you explain in more details?
how to add a package ?
Guy

Posted: Mon Apr 28, 2003 7:14 am
by volka
don't know much about readhat but most likely http://www.redhat.com/docs/manuals/linu ... l-rpm.html is what you're looking for.
The php_mysql-package probably hides somewhere in a network, development or web section (or a completly different location ;) )

thanks so far, so...

Posted: Mon Apr 28, 2003 7:32 am
by Guy
i've downloaded the rpm from
http://rpmfind.net/linux/RPM/redhat/8.0 ... .i386.html
and installed it.
i got a warning (btw - how am i suppose to use the md5?)
and it seemed to complete the instalation,
but no mysql.so was generated.
any ideas?
Thanks
Guy

Posted: Mon Apr 28, 2003 8:02 am
by volka
the warning-message was? Did you test the installation?
But as mentioned: I don't know much about readhat