Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-29-2003, 11:00 AM   #1
LQ Newbie
Registered: Jun 2003
Location: Multan, Pakistan.
Posts: 3

Rep: Reputation: 0
PHP/MYSQL Configuration


I need your help regarding MYSQL configuration on Linux 8.0. The problem is that the PHP is working fine but when I try to use MYSQL database with PHP, the following error comes.

"mysql extensions are not found. Please check PHP configuration"

I have check that MYSQL is installed and working fine. I have check it using rpm -q mysql, and it is showing the mysql too. I have also started it from services too. I am unable to solve this problem from many days. Need your help in this matter.


M. Muzaffar Hameed
Old 06-29-2003, 12:34 PM   #2
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
Your problem is most likely that you're installing php from an rpm, so it is being pointed to the incorrect location for mysql.

To get php working correctly you'll need to download the source from , and run ./configure with some options such as (se ./configure --help for all of them)


Those are off of the top of my head, so I'm not positive that they're correct, so you may want to check before using them. apxs is an apache binary used to compile modules. Gd and Freetype are necessary to use php functions involving images. You may want to configure it with other options too, just make sure you read ./configure --help.

Good luck,
Old 06-29-2003, 01:58 PM   #3
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you used an rpm then you can just install the "php-mysql" rpm too.
Old 06-29-2003, 03:11 PM   #4
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
Hm, that sounds easier.


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
Mysql 4.1 and PHP configuration? sikandar Linux - Software 2 05-30-2005 11:08 PM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 09:54 PM
Apache MySQL PHP configuration Gilion Linux - Software 1 02-02-2004 11:58 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
apache php-mysql configuration problems ugol Linux - Software 1 11-08-2003 10:13 PM > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration