LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-29-2005, 03:48 AM   #1
jkmartha
Member
 
Registered: Apr 2005
Location: india
Distribution: Redhat 9
Posts: 66

Rep: Reputation: 15
php-mysql error


redhat -9 . php-4.2.2. mysql - 4.1.11. php was already pre-installed while installing redhat . recently, i installed mysql . now, when i am accessing a php web page in a project, the message Fatal error: Call to undefined function: mysql_connect() is displayed in the browser. what next ? should i erase the old php using # rpm -e --nodeps php-x.x.x and install updated php version from source ?? pliz help asap. thanx
 
Old 04-29-2005, 04:09 AM   #2
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
Now as I remember the database functionality must be installed with Apache (the web server).

Cant remember but I think it is a module that you can install. Insert the CD and go to the Webserver section and install mysql support for Apache.
 
Old 04-29-2005, 04:13 AM   #3
apsivam
Member
 
Registered: Mar 2005
Location: Chennai, India
Distribution: Ubuntu, CentOS
Posts: 72

Rep: Reputation: 15
this is a usual error for all RedHat users. while upgraing MySQL you should install the MySQL-shared-3.23.58-1.i386.rpm instead of the latest one comes with MySQL 4.1 all other can be from 4.1 tree.
 
Old 04-29-2005, 05:37 AM   #4
jkmartha
Member
 
Registered: Apr 2005
Location: india
Distribution: Redhat 9
Posts: 66

Original Poster
Rep: Reputation: 15
hi jax8,
thanx for ur reply.
is it actually mysql support for php or mysql support for apache ??? i hope php should b installed alongwith mysql compilation. for ex- # ./configure --with-mysql= .
 
Old 04-29-2005, 05:40 AM   #5
jkmartha
Member
 
Registered: Apr 2005
Location: india
Distribution: Redhat 9
Posts: 66

Original Poster
Rep: Reputation: 15
hii

hi apsivam,
thanx for ur reply. actually i always prefer source ( tar.gz) instead of rpm. so, was n't the shared library in the source of mysql ???
 
  


Reply


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
php, mysql error Alexander.s Programming 6 04-26-2005 05:51 PM
Error connecting to MySQL from PHP anindyanuri Linux - Software 18 04-24-2005 10:30 AM
PHP-MySQL Weird Error Fordor Slackware 2 02-24-2005 01:01 PM
mysql - php socket error. ldp Linux - Software 9 10-22-2004 04:40 AM
PHP/MySql Error cmfarley19 Linux - Software 4 05-12-2003 01:26 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration