MySQL Forums
Forum List  »  Security

Re: Configuring MySQL/APACHE/PHP
Posted by: Zvi dubitzki
Date: May 30, 2006 08:59AM

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 ok 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 !

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 ?
thanks dubi

Options: ReplyQuote


Subject
Views
Written By
Posted
7305
November 21, 2005 11:02AM
10159
January 05, 2006 07:34PM
Re: Configuring MySQL/APACHE/PHP
4363
May 30, 2006 08:59AM
10304
May 30, 2006 09:29AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.