php, MySQL and Debian

Fraser Campbell fraser-eicrhRFjby5dCsDujFhwbypxlwaOVQ5f at public.gmane.org
Mon Jul 5 10:49:45 UTC 2004


On July 5, 2004 12:38 am, William O'Higgins wrote:
> I'm at my wit's end with this problem.  What I want, is for php4 and
> MySQL and apache 1.3 to interact.  What I've got is this:
>
> Fatal error: Call to undefined function: mysql_connect() in ...
>
> I know that this is probably because php4 was installed before
> php4-mysql, but I can't seem to fix it.  If I try to remove php4 and
> php4-mysql and install them in a different order, apt tries to give me
> apache2, which I don't want.  There *must* be a way to alter a
> configuration file to get php to acknowledge mysql, but I can't see
> what's missing.  php.ini looks completely in order.
>
> Any suggestions?

Edit the file /etc/php4/apache/php.ini and make sure that there is a line like 
this:

extension=mysql.so

The extension lines ususally show up at the end of the file.  After editing 
restart apache.

-- 
Fraser Campbell <fraser-Txk5XLRqZ6CsTnJN9+BGXg at public.gmane.org>                 http://www.wehave.net/
Georgetown, Ontario, Canada                               Debian GNU/Linux
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list