Hello, sorry - n00b I am.
Running
Redhat
Apache 2.0
PHP 4.2.2
SQL 4.0
Problem - PHP does not resolve MySql (I think)
phpinfo() states:
'--with-mysql=shared,/usr'
should this not be a full path?
phpinfo() also states:
DBX - supported databases - MySql + others
But MySql does not have it's own table listing (module?) in phpinfo()
config file
is located in /etc/php.ini
Decided to run phpMyadmin to help and to assertain connectivity - received error:
Quote:
cannot load MySQL extension,
please check PHP Configuration
|
"Likely reason was mysql.so file not found" - which I could not find.
Installed the rpm php-mysql and I have a path to mysql.so now -
/usr/lib/php4/mysql.so
in php.ini it lists the extension_dir = /usr/lib/php4
I have uncommented and set extension=mysql.so
restarted apache ...
no go ...
created a db in mysql from the prompt, ran test php page from browser to connect to db, receive error:
Quote:
Fatal error: Call to undefined function: mysql_connect() in /home/www/html/test2.php on line 13
|
Could I be missing something in Apache config ?
httpd.conf states:
LoadModule php4_module modules/libphp4.so
Called php from shell prompt and receive error:
Quote:
libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line 0
|
What is libmysqlclient.so.10 ? Could that be a determinate in PHP not finding SQL ?
currently at a loss ... Help would be sooo appreciated !!!
will gladly supply more info from phpinfo
Thx /_Chow_