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-21-2004, 01: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, 02:46 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

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

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

All times are GMT -5. The time now is 09:03 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
Open Source Consulting | Domain Registration