Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 11-21-2004, 12:36 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 7

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

I just installed Mandrake 10.1 Community, went just fine.
Except that 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:23 PM   #2
Registered: Sep 2003
Location: London
Distribution: Susi 9.1, Man10 amd64, Man10.1
Posts: 243

Rep: Reputation: 30
You probably have not loaded the apache2mod_php, or apache2mod_mysql, got to install software and find the application
install and restart apache with

apachectl stop
apachectl start

Ensure the mysql server is started by checking for mysql

check the module is working with making a text file
<? phpinfo() ?>
put it into your website in /var/www/html as test.php then
with your browser type

This will tell you if the mysql is loaded in apache and the location of all the files etc for mysql.

Last edited by barrys; 11-21-2004 at 01:27 PM.
Old 11-21-2004, 01:39 PM   #3
LQ Newbie
Registered: Nov 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs down

Thank you, but PHP is already installed and running : phpinfo :

Howev'./configure' '--build=i586-mandrake-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-discard-path' '--disable-force-cgi-redirect' '--enable-shared' '--disable-static' '--disable-debug' '--disable-rpath' '--enable-pic' '--enable-inline-optimization' '--enable-memory-limit' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--with-pear=/usr/share/pear' '--enable-magic-quotes' '--enable-debugger' '--enable-track-vars' '--with-exec-dir=/usr/bin' '--with-versioning' '--with-mod_charset' '--with-regex=php' '--enable-track-vars' '--enable-trans-sid' '--enable-safe-mode' '--enable-ctype' '--enable-ftp' '--with-gettext=/usr' '--enable-posix' '--enable-session' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--with-openssl=/usr' '--without-kerberos' '--with-ttf' '--with-freetype-dir=/usr' '--with-zlib=/usr' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--without-pear'

However, it seems to show that it's been built without MySQL support


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 Linux - Software 3 11-21-2004 03:11 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 > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:11 AM.

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