Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-18-2009, 03:28 AM   #1
LQ Newbie
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
Unhappy php and mysql installed but php is not able to get mysql...

Hi All
I'm running PHP Version 5.1.6 and mysql version 5.0.86 on FC6.
Both are running fine individually.
but when I use mysql_connect() in php i get following error:
Fatal error: Call to undefined function mysql_connect() in /usr/local/myfiles/share/test.php on line 30

phpinfo() shown that php is installed without mysql--
.........'--without-mysql' '--without-gd' '--without-odbc' '..........

But I don't want to reinstall php using yum or rpm as The server is being used for Nagios and any crash or any loss will spoil the scene.

The only affordable solution that I come to know is to have these two files:
and specify it in with extension_dir.Just one entry in httd.conf and restart apache.
But I'm not sure How to go for this.
Help me about these share objects files and the proper entry to be made in httpd.conf.

Thanks in advance.
Mukesh Lalwani
Old 11-18-2009, 03:43 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,206

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394

You need the php-mysql package in order for php to work with mysql



entry, mysql, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL" rebelde Linux - Software 2 03-13-2009 11:32 AM
how do i know if mysql/php/apache are installed alanceey Linux - Newbie 1 09-10-2008 09:28 AM
installed apache, mysql -- help with php machiner Linux - Software 2 07-28-2004 02:36 PM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 09:54 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration