LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-18-2009, 02:28 AM   #1
lalwani
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:
mysql.so
mysqli.so
and specify it in php.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, 02:43 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Hi,

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

Regards
 
  


Reply

Tags
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 10:32 AM
how do i know if mysql/php/apache are installed alanceey Linux - Newbie 1 09-10-2008 08:28 AM
installed apache, mysql -- help with php machiner Linux - Software 2 07-28-2004 01:36 PM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 08:54 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:51 AM.

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