You are not logged in.

#1 2009-10-04 22:49:16

scragar
Member
Registered: 2009-07-14
Posts: 108

[SOLVED] PHP no longer detects the MySQL module

I know the module exists:

$ locate mysql.so | grep php
/usr/lib/php/modules/mysql.so
/usr/lib/php/modules/pdo_mysql.so

I know the module is enabled

$ grep 'mysql.so' /etc/php/php.ini
extension=mysql.so
;extension=pdo_mysql.so

So why does phpMyAdmin argue that it's not there?

phpMyAdmin - Error

Cannot load mysql extension. Please check your PHP configuration. - Documentation

What is wrong and how do I fix it?

Last edited by scragar (2009-10-05 14:58:51)

Offline

#2 2009-10-05 09:11:43

arkham
Member
From: Stockholm
Registered: 2008-10-26
Posts: 516
Website

Re: [SOLVED] PHP no longer detects the MySQL module

Have you restarted your httpd daemon?


"I'm Winston Wolfe. I solve problems."

~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~

Offline

#3 2009-10-05 09:55:36

scragar
Member
Registered: 2009-07-14
Posts: 108

Re: [SOLVED] PHP no longer detects the MySQL module

I tried to extend on this last night, but I was unable to load this site.

The problem started when I restarted httpd to make a change to it's config to enable htaccess on one of my subdirs, or at least that's when I first noticed it. After getting annoyed with it I decided to just reinstall PHP, apache and MySQL, deleting the config files for them all, I could make my changes again in around 5 minutes.
Turns out I was wrong, reinstalling them all caused apache to not work with phpMyAdmin, attempting to fix this by changing permisions did nothing, that's when I realised that index.php wasn't seen as my main page, attempting to load this directly caused me to see my source code for the index page.

This is the situation I'm on now, after I gave up attempting anything else last night.

Offline

#4 2009-10-05 11:37:26

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] PHP no longer detects the MySQL module

Did you search the forums and read the frontpage news? Not the first time this kind of problem pops up you know wink.

http://www.archlinux.org/news/465/


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2009-10-05 11:42:23

Holloway
Member
From: Berlin/Germany
Registered: 2008-03-25
Posts: 2

Re: [SOLVED] PHP no longer detects the MySQL module

As the news references to the php.ini.pacnew and said the module path is now /usr/lib/php/modules/ it's easy to do the trick. smile
Just got it working again for me.

Offline

#6 2009-10-05 12:41:47

scragar
Member
Registered: 2009-07-14
Posts: 108

Re: [SOLVED] PHP no longer detects the MySQL module

B wrote:

Did you search the forums and read the frontpage news? Not the first time this kind of problem pops up you know wink.

http://www.archlinux.org/news/465/

As I said, the forums(and the home page) were down shortly after I first noticed this problem and posted it here(because I didn't think I'd updated PHP), so I hadn't noticed that, now my problem has progressed beyond that and I think I'm going to have to edit my httpd conf file to get my settings back to a working level.



EDIT: Solved it, just had to edit the .htaccess file, can't believe I didn't think of that.

Last edited by scragar (2009-10-05 14:58:16)

Offline

Board footer

Powered by FluxBB