Re: can't get support for postgresql or mysql

2004-09-18 Thread Matthew Seaman
On Fri, Sep 17, 2004 at 02:47:48PM -0400, asolomon15 wrote:
 Hello everyone...   I have a problem getting support for mysql within 
 php.   I am running freebsd 5.2.1 and php 4.3.8.  When I tried to run a 
 php script that uses a mysql db connection, I got  this error
  *Fatal error*: Call to undefined function: mysql_connect() in
 
 I did a phpinfo() and noticed i didn't see any mysql or postgresql 
 support in it.   I then tried to install php4-mysql module from the 
 freebsd ports and still no luck.I also tried reinstalling both and I 
 still end up in the same situation.   I did a google search for how to 
 load a mysql module but I keep getting articles about how to load it 
 with apache.   What should I do?  

Installing the php4-mysql module is the correct first step.  The
question is why that new module isn't being loaded as part of
mod_php4?  Eliminating the obvious: did you kill and restart apache
/after/ installing php4-mysql?

If that doesn't work, then what is the value of the 'extension_dir'
property in /usr/local/etc/php.ini ? By default it should be commented
out:

; Directory in which the loadable extensions (modules) reside.
; extension_dir = ./

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpqy8Xpesg1x.pgp
Description: PGP signature


Re: can't get support for postgresql or mysql

2004-09-18 Thread Matthew Seaman
On Fri, Sep 17, 2004 at 04:32:27PM -0500, Kevin D. Kinsey, DaleCo, S.P. wrote:
 asolomon15 wrote:
 
 Hello everyone...   I have a problem getting support for mysql within 
 php.   I am running freebsd 5.2.1 and php 4.3.8.  When I tried to run 
 a php script that uses a mysql db connection, I got  this error
  *Fatal error*: Call to undefined function: mysql_connect() in
 
 I did a phpinfo() and noticed i didn't see any mysql or postgresql 
 support in it.   I then tried to install php4-mysql module from the 
 freebsd ports and still no luck.I also tried reinstalling both and 
 I still end up in the same situation.   I did a google search for how 
 to load a mysql module but I keep getting articles about how to load 
 it with apache.   What should I do? 
 
 
 Please read /usr/ports/UPDATING if it is available on your system.  If not,
 you may access it via the cvsweb at the Project web site.  You will need to
 install /usr/ports/lang/php4-extensions to, um, get the extensions ;-)

php4-extensions isn't *required* to install extension modules.  It's
just a handy way for people to manually select what they want out of
all of the available extensions.  Each extension nowadays is a
stand-alone port, like any other port.  PHP applications that require
a certain extension in order to work simply have to register a
run-time dependency on each of the extension modules they need.  Mosr
of the PHP applications in the ports tree have already been modified
to do that.

Cheers,

Matthew 

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp4vXdIgCHM6.pgp
Description: PGP signature


can't get support for postgresql or mysql

2004-09-17 Thread asolomon15
Hello everyone...   I have a problem getting support for mysql within 
php.   I am running freebsd 5.2.1 and php 4.3.8.  When I tried to run a 
php script that uses a mysql db connection, I got  this error
 *Fatal error*: Call to undefined function: mysql_connect() in

I did a phpinfo() and noticed i didn't see any mysql or postgresql 
support in it.   I then tried to install php4-mysql module from the 
freebsd ports and still no luck.I also tried reinstalling both and I 
still end up in the same situation.   I did a google search for how to 
load a mysql module but I keep getting articles about how to load it 
with apache.   What should I do?  

Antoine  
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't get support for postgresql or mysql

2004-09-17 Thread Kevin D. Kinsey, DaleCo, S.P.
asolomon15 wrote:
Hello everyone...   I have a problem getting support for mysql within 
php.   I am running freebsd 5.2.1 and php 4.3.8.  When I tried to run 
a php script that uses a mysql db connection, I got  this error
 *Fatal error*: Call to undefined function: mysql_connect() in

I did a phpinfo() and noticed i didn't see any mysql or postgresql 
support in it.   I then tried to install php4-mysql module from the 
freebsd ports and still no luck.I also tried reinstalling both and 
I still end up in the same situation.   I did a google search for how 
to load a mysql module but I keep getting articles about how to load 
it with apache.   What should I do? 

Please read /usr/ports/UPDATING if it is available on your system.  If not,
you may access it via the cvsweb at the Project web site.  You will need to
install /usr/ports/lang/php4-extensions to, um, get the extensions ;-)
Kevin Kinsey
DaleCo, S.P.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]