Subject: Re: Problems with Apache, MySQL and PHP3
To: Eric Delcamp <e.delcamp@wanadoo.fr>
From: Dean Huxley <dean@huxley.org>
List: port-i386
Date: 08/26/2000 08:50:22
"Eric Delcamp" <e.delcamp@wanadoo.fr> wrote:
> Hi !

Hi!

> I have installed from packages Apache Web server, MySQL and PhP3:
> 
> root.gedeon:~> pkg_info
> trying PKG_PATH /usr/tarballs
> apache-1.3.11       The Apache web server (http://www.apache.org/)
[snip]
> (Side note, how to avoid the annoying "trying PKG_PATH /usr/tarballs"
> messages ? /usr/tarballs is where I put .tgz archives)

I don't know if I can help on this one.  Perhaps doing "setenv PKG_PATH 
/usr/tarballs" will get rid of the messages...


> PhP3 itself work well, I can generate HTML pages on fly. But when I'm trying
> to use MySQL access with this script, I get error :
[snip]
> Fatal error: Call to unsupported or undefined function mysql_pconnect() in
> /export/partage/Web/www_root/test.php3 on line 5
> 
> Should I install package in a certain order ? I have read the docs, and have
> modified httpd.conf like suggested (in fact, PHP3 work). I dont find a
> configuration file for PHP3, except php3.ini :
> 
> #       $NetBSD: php3.ini.example,v 1.1 1999/05/03 21:35:06 tv Exp $
> 
> extension_dir=/usr/pkg/lib/php3

I think I had to add another line to get mine to work:

extension=mysql.so

You might have to do "apachectl restart" after you make the change.

Cheers,
Dean.