473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

PHP, MySQL & FC6

Hello group,

I've inherited a box running FC6.

The website I'm trying to copy across to it ran fine on FC5.. PHP &
MySQL were set up 'out-the-box' so the site just worked.

Somethings changed with FC6.

Trying to run the DB script now gives:

PHP Fatal error: Call to undefined function mysql_connect()

Looking at phpinfo();, the configure command has the switch
"--without-mysql" in it, which I figure is the root of my problem.

MySQL is definitely installed on the box, I've a database up and running
on that just fine. It can be accessed locally and remotely.

My question is, what's the simplest way to get PHP to recognise MySQL is
there to use? Preferably without breaking anything else (e.g., there's a
cron job that calls yum daily to do updates.. This must still work
afterwards!!)

Thanks for any pointers.
Apr 16 '07 #1
4 2592
noi
On Mon, 16 Apr 2007 05:23:27 +0100, martinf wrote this:
Hello group,

I've inherited a box running FC6.

The website I'm trying to copy across to it ran fine on FC5.. PHP & MySQL
were set up 'out-the-box' so the site just worked.

Somethings changed with FC6.

Trying to run the DB script now gives:

PHP Fatal error: Call to undefined function mysql_connect()

Looking at phpinfo();, the configure command has the switch
"--without-mysql" in it, which I figure is the root of my problem.

MySQL is definitely installed on the box, I've a database up and running
on that just fine. It can be accessed locally and remotely.

My question is, what's the simplest way to get PHP to recognise MySQL is
there to use? Preferably without breaking anything else (e.g., there's a
cron job that calls yum daily to do updates.. This must still work
afterwards!!)

Thanks for any pointers.
Are you sure it's MySQL and not PHP? Versions the same in FC5 vs FC6?

Apr 17 '07 #2
noi wrote:
>Somethings changed with FC6.

Trying to run the DB script now gives:

PHP Fatal error: Call to undefined function mysql_connect()

Looking at phpinfo();, the configure command has the switch
"--without-mysql" in it, which I figure is the root of my problem.

MySQL is definitely installed on the box, I've a database up and running
on that just fine. It can be accessed locally and remotely.

My question is, what's the simplest way to get PHP to recognise MySQL is
there to use? Preferably without breaking anything else (e.g., there's a
cron job that calls yum daily to do updates.. This must still work
afterwards!!)

Thanks for any pointers.

Are you sure it's MySQL and not PHP? Versions the same in FC5 vs FC6?
Yup it was PHP. If my question gave the impression MySQL was to blame it
wasn't meant to. There are details on the PHP site about the change
and why it's happened, I just didn't know how to fix it!

The fix (which didn't make it into a.l.r and c.l.p) for the benefit of
any future Googlers is:

yum install php-mysql
service httpd restart
Apr 18 '07 #3
noi <no*@siam.comwrites:
On Mon, 16 Apr 2007 05:23:27 +0100, martinf wrote this:
>Hello group,

I've inherited a box running FC6.

The website I'm trying to copy across to it ran fine on FC5.. PHP & MySQL
were set up 'out-the-box' so the site just worked.

Somethings changed with FC6.

Trying to run the DB script now gives:

PHP Fatal error: Call to undefined function mysql_connect()

Looking at phpinfo();, the configure command has the switch
"--without-mysql" in it, which I figure is the root of my problem.

MySQL is definitely installed on the box, I've a database up and running
on that just fine. It can be accessed locally and remotely.

My question is, what's the simplest way to get PHP to recognise MySQL is
there to use? Preferably without breaking anything else (e.g., there's a
cron job that calls yum daily to do updates.. This must still work
afterwards!!)

Thanks for any pointers.

Are you sure it's MySQL and not PHP? Versions the same in FC5 vs FC6?
It is probably just that the php mysql module is not loaded. In Ubuntu
it can be installed by synaptic.
Apr 18 '07 #4
martinf wrote:
PHP Fatal error: Call to undefined function mysql_connect()
On Mandrake (which is a fork of Redhat from long ago) there is a
particular package called "php-mysql" which includes the MySQL extension.
Try looking for a similarly named package.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Apr 18 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: AF | last post by:
I am a real novice to php and MySQL, with about a week's worth of reading and self tutoring. I have an urgent need to publish a database of information and need some guidance on how to do this. ...
2
by: iwasinnihon | last post by:
I don't usually like to do this, but I need help. I have gone over this code and cannot figure out why it doesn't work. First of all it doesn't check to see if you have filled in the required...
0
by: Donald Tyler | last post by:
Yes it can. But you should understand the three distinct levels of that situation. You need the following: Database Web Server Server-Side Scripting Language I would suggest using AMP...
4
by: MLH | last post by:
A programmer developed an AMP (Apache/MySQL/PHP) application for me. When he was done, he sent me the PHP files and the MySQL dump file. Now, when I connect to the application on my LAN using...
2
by: zhengfish | last post by:
Hi,All, I try to install mysql-5.0.15 on RHEL3-U5. But It give me a error. MySQL-client-standard-5.0.15-0.rhel3.i386.rpm MySQL-devel-standard-5.0.15-0.rhel3.i386.rpm...
3
by: Steven Sinfield | last post by:
Hi All, I am trying to use PHP & MySQL over SSL, my issue is that the data that I am querying also needs to be available by non-secure as well. Can someone please help me in doing this. ...
1
by: Lennie De Villiers | last post by:
Hi, I'm running PHP 4.4.2 and mySQL on MS Windows XP Home Edition in IIS 6.0. When I try to connect to mySQL from PHP I get the following error message: Warning: mysql_connect(): Client does...
1
by: cumupkid | last post by:
II am trying to create a form that will allow me to upload photos to a folder in the site root directory and add the information to the mysql db at the same time. I have created two forms, one...
3
by: jonathan184 | last post by:
The code seems to be working fine for some records but I am thinking it is finding some other records with special characters and so on. I am looking for a way to insert the xml string with escaping...
3
by: subho2009 | last post by:
Hello friends, I have face a problem, the problem is that when i fetch data from mysql database i get '&' in the place of '&amp;'. I am using php 5.1.2 and mysql version 5.0.11-beta. What is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.