Apache/php/Mysql problem
-------------------------
I am using Linux RedHat Enterprise 3
On top I have apache 2.0.46
I have php 4.3.2-18 installed (base + devp + php-mysql rpms)
php.ini has extension dir= /usr/lib/php4 . In that dir I have mysql.so
I installed mysql 4.1.19 including: client,server,devel and the standard and compatibility libraries.
I have a php program (say: x.php) that access Mysql using Api (like : myqsl_connect).
When I run the php program under a linux command line (e.g.:> php x.php)
It runs fine and does the Mysql database work.
Now I added some HTML stuff and try to run the same x.php from a browser.
But then I get a message :" Call to undefined function mysql_connect() at line yyy"
Again :Same program runs under the command line . Also : /etc/httpd/conf/httpd.conf seems ok and so /etc/httpd/conf.d
Both the Mysql client and server and the browser and apache server run on the same Linux machine . When I use a browser on a different machine I get the same problem . The file under /var/log/httpd do not show any special problem . permissions seem ok.
When I remove the /usr/lib/php4/mysql.so then I get the SAME error ALSO from the command line running of x.php !
There is no referal to the mysql library path in the httpd.conf file , just in the /etc/php.ini
SO IT SEEMS AS IF IT IS A PROBLEM OF ACCESS OF THE APACHE TO THE MYSQL.SO , BUT I DO NOT SEE WHY.
Any help ? you can also answer my e-mail :
dubi@il.ibm.com
thanks dubi