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!

php problems in install

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

 
What O/S Rninja? ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
You should be able to install all of these staright from disc when you do your install .. or as an upgrade - under packages choose "select individual packages" and check each box required.
As you have RedHat 7.3 all of these will be the most recent stable releases on your source.
______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
I decided to remove the rpms and do a source install. Now I am getting this error: "ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)"

Any Ideas on fixing this? I already tried to specify a different sock byusing the -use-unix-socket-path= switch and got the same error message except that in perenthesis I got (2) not (111).

Thanks Karver Rninja

smlogo.gif

 
Nah, thats the easy one to fix, chmod 777 /tmp
possibly you'll need chmod -r 777 /tmp (do this as root).

Normally it occurs on the var/lib/mysql directory ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top