LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem with mysql extension. (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-mysql-extension-352342/)

Hum4ngus 08-11-2005 07:00 PM

problem with mysql extension.
 
Hi all,

i've emerged apache2 and configured it, and emerged php. those 2 work just fine (checked with <?php phpinfo() ?>).

and now i want to install phpmyadmin.
so i emerged that.

but when i do http://theserverip/phpmyadmin
i get this error.

cannot load mysql extension;
please check PHP configuration
Documentation

i know what this means cause i've installed mysql on windows once.
so first i had to find the mysql.so file (i'm not that good in linux so i didn't know how the "find" command really worked)

but i've been strugeling with that mysql extension for days now...
i've uncommented extension=mysql.so in the php.ini file
and checked the extension_dir was correct.

but when i type php -m in the command line i get this error.

PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/extensions/mysql.so' - /usr/lib/php/extensions/mysql.so: undefined symbol: PL_perl_destruct_level in Unknown on line 0

i hope someone knows how to help me cause i'm out of idea's.

thnx anyways!

greets Hum4ngus

Matir 08-12-2005 11:47 AM

Did you emerge php with the mysql use flag?

Also, are you using mod_php?

tuxrules 08-12-2005 11:53 AM

I have no experience with Gentoo and Emerge but it is possible that your php is not compiled with mysql support. If you are using php 5 & running mysql 4.1.x then you need --enable-mysqli compile switch.

I've compiled php with mysqli on slackware and it worked out perfect...again I have no idea about Gentoo so I may be completely off the track here.

Tux,


All times are GMT -5. The time now is 01:11 PM.