Check the user and db databases and see if the necessary entries are there.
See if the domain and ip of that site you are testing that file from is in
there!!

Hope that help....

Kal

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Fri, September 07, 2001 3:05 AM
To: [EMAIL PROTECTED]
Subject: Re: [cobalt-developers] PHP 4.0.6 for RaQ4 released


>I am glad to announce PHP 4.0.6 for RaQ4, available for free download
from
>http://pkg.nl.cobalt.com
>This version 'resembles' the official Cobalt version, therefore no issues
>should arise.

Prior to installing the non-NEWGD-version of the new pkg, I had phpMyAdmin
2.2.0 and a PHP-MySQL app-in-development working fine.  Following the
installation of the PHP 4.0.6 pkg, phpMyAdmin still works fine but the
PHP-MySQL app will no longer connect, actually, it doesn't even recognize
the function call.  All connection calls render the following error:

"Call to undefined function: mysql_connect() ..."

>From the command line, using exact same connect parameters, I connect to
MySQL fine.  It's only when called from PHP that the error is
generated...even though phpMyAdmin still works!?!  Those clever folks. ;-)


This code:
<?php
$link = mysql_connect("localhost", "user", "password") or die ("Could not
connect");
print("Connected successfully");
mysql_close($link);
?>
generates the error above.  It's like MySQL is not compiled with PHP
support anymore even though phpMyAdmin still works.  phpinfo() ./configure
shows '--with-mysql=shared'

Installing the new pkg did not seem to update/timestamp the
/etc/httpd/php.ini file.  As per the archives relating to the error msg
above, I added "extension=mysql.so" to the ini file which wasn't there
before (when the app worked) but it
made no difference.  The ini directive "extension_dir = /usr/lib/apache/php"
is correctly pointing to a brand new (8/2/01) mysql.so file.  Rebooting
the RaQ4r from the GUI also had no effect.
Is there possibly another configuration file that was updated with/by the
new 4.0.6 pkg that phpMyAdmin is able to ignore but "connect"s from a
simple test prog gets messed up?  I am using MySQL 3.23.37 installed from
RaQ3-RaQ4-MySQL-3.23.37-1.pkg.  Would you think re-installing the MySQL pkg
might make a difference?
Seems drastic.

The above all happened in the span of about 15 minutes on a lightly used
box where there are no other admin's besides myself.  The box is mostly
vanilla with all patches.  Any ideas?

Thanks,
Kim

_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers

Reply via email to