LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-21-2004, 12:40 PM   #1
MonServeur
LQ Newbie
 
Registered: Nov 2004
Posts: 7

Rep: Reputation: 0
Angry Apache ADVX & PHP w/ MySQL


I just installed Mandrake 10.1 Community, it went just fine.
Except that when connecting to my site I get this :
Fatal error: Call to undefined function: mysql_connect() in /home/jean-michel/www/html/mymtm/install.php on line 26

I browsed thru available docs that says that Apache ADVX is Apache w/ PHP & MySQL. Except that MySQL is statically integrated in Apache & not using DSO.

I installed MySQL-Administrator and it looks like MySQL is up and well

How do I get PHP to recognise MySQL ?

I am a newbie and don't feel like recompiling with different options
 
Old 11-21-2004, 01:46 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Did you install Apache and PHP from source or via RPM? If the latter, you'll need to install the php-mysql RPM, but iof the former, you'll need to recompile PHP with MySQL support.
 
Old 11-21-2004, 01:54 PM   #3
MonServeur
LQ Newbie
 
Registered: Nov 2004
Posts: 7

Original Poster
Rep: Reputation: 0
It has been installed during the Mandrake 10.1 distrib installation. So I believe that it is an RPM. More precisely the RPM for Apache ADVX that is an integrated Apache with PHP and MySQL.
See http://www.advx.org/

I feel extremely nervous at the idea of having to reinstall it ! I have a very limited knowledge of Linux
 
Old 11-21-2004, 03:11 PM   #4
MonServeur
LQ Newbie
 
Registered: Nov 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Lightbulb

Ok I just found the answer, thru whats displayed by phpinfo :
Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME

So I downloaded & installed php-mysql*.rpm

And this problem IS SOLVED ! ! !

Thanks anyway to all for trying to help.
 
  


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
Slackware guide for AMP Apache MySQL & PHP xushi Slackware 35 05-11-2006 11:18 AM
Apache ADVX & PHP w/ MySQL MonServeur Mandriva 2 11-21-2004 01:39 PM
MDK10 and Apache, MySql & PhP prodigal Mandriva 2 08-05-2004 07:49 AM
From RedHat9 to FreeBSD (Apache 2 & Mysql & PHP 4) guardian653 *BSD 5 12-11-2003 05:31 PM
Apache & Php & MySql te_conway Linux - Software 2 12-21-2001 04:06 PM

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

All times are GMT -5. The time now is 07:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration