Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql and php install problem

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I have been trying to get MySQL, PHP, and Apache with SSL to play well with each other but here is my problem thusfar.
Apache with SSL works. MySQL works, and PHP works. All on their own. However when I try to use a PHP page that accesses MySQL through the apache web server, I get this message: "Fatal error: Call to undefined function: mysql_connect()in /usr/local/apache/htdocs/database.php on line 19" or even worse as it was before, a Segmentation Fault.

I am running Apache 1.3.26 with MySQL 4.0.1 and PHP 4.2.1. The thing is, I have set the paths for my libraries and executables in ld.so.conf and ran ldconfig. I have also edited the php.ini file and found a reference to mysql.so, which does not exist.

All of the tutorials and books I have read on the integration of these technologies hasn't said a thing about this sort of problem. I have even re-compiled about 10 times with different options. I am stumped.

BTW: Apache was installed by source (tar.gz), MySQL was installed via several RPMs (client,devel,shared and mysql), and php was also installed from source.


Thanks for any help with this everyone! Rninja

smlogo.gif

 
When you ran the configure script as the first step of the compilation of PHP, did you direct the script to compile PHP with support MySQL? It doesn't do so by default.

______________________________________________________________________
My God! It's full of stars!
______________________________________________________________________
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top