LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PHP/MYSQL Configuration (https://www.linuxquestions.org/questions/linux-newbie-8/php-mysql-configuration-68823/)

drweb 06-29-2003 11:00 AM

PHP/MYSQL Configuration
 
Hi,

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.

Regards.

M. Muzaffar Hameed

andrew001 06-29-2003 12:34 PM

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 php.net , and run ./configure with some options such as (se ./configure --help for all of them)

--with-mysql=/path/to/sql
--with-apxs=/path/to/apxs
--with-gd
--with-freetype-dir=/path/to/fretype

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,
Andrew

david_ross 06-29-2003 01:58 PM

If you used an rpm then you can just install the "php-mysql" rpm too.

andrew001 06-29-2003 03:11 PM

Hm, that sounds easier.


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