[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] PHP 4.3.3 with mysql support??
- Subject: RE: [cobalt-developers] PHP 4.3.3 with mysql support??
- From: BSmith@xxxxxxxxxxx
- Date: Mon Sep 29 08:59:01 2003
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
-----Original Message-----
I did what most of the howtos say, but no1 seems to have
an answer to why mysql_connect() nor probably any mysql
functions, dont work..
-----Original Message-----
How to fix your problem ..
#1 - Check your ./configure string in your "phpinfo();"
If it says: --with-mysql=/usr then: you Should have it no problem. Check
through the rest of your "phpinfo();" to see if it shows up.
If it says: --with-mysql=shared then you compiled it from a mysql.so.
If you did a "make install" it would be typically installed under:
/usr/lib/php/extensions/no-debug-<more stuff>/
If that is the case, you will need to update your "php.ini" to reflect your
extension dir. OR move the files in that directory to your extension.
FOR EXAMPLE:
On my RaQ 550, I do:
ls -l /usr/lib/php/extensions/no-debug-non-zts-20020429/
I do NOT have them there anymore (they default to there), I moved them to:
/usr/lib/php/extensions
Now in your "php.ini", which make sure you use the correct one. Check your
"phpinfo();" to see where it is. You will ned to make sure that your
extension directory is set properly.
FOR EAMPLE:
On my RaQ 550, I use:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib/php/extensions"
Because that is where my .so are stored .. yours may be different.
To see this "phpinfo();" I talk about ... create a new file like phpinfo.php
and paste in the following lines:
<?php phpinfo(); ?>
That can help you determine all of this information that I told you to look
for.
If you use this as a guide, you should get MySQL up and working.
Thank You very much,
Brian Smith
CCNA, NCSA, CCSP
Network Support Engineer
SOLUSERVE
www.solunet.com
1571 Robert J. Conlan Blvd., Suite 110
Palm Bay, FL 32905
(888)449-5766
fax: (321)-676-1287