You are not logged in.

#1 2009-02-09 07:56:22

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

apache mysql-php (solved)

ok so I was following the wiki.
it says to test mysql by using phpmyadmin.

My test fails.
it says, "Cannot load mysql extension. Please check your PHP configuration. - Documentation"

when I look at documentation it says,

" 1.20 I receive the error "cannot load MySQL extension, please check PHP Configuration".

To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.

Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar."
---------------------------------------------------------------------------------------------------------------------------------------------------------

I already enabled the mysql.so in /etc/php/php.ini

;extension=imap.so
;extension=json.so
;extension=ldap.so
;extension=mcrypt.so
;extension=mhash.so
;extension=mime_magic.so
extension=mysql.so                 <-----------------------------------------
;extension=mysqli.so
;extension=ncurses.so
;extension=odbc.so
;extension=openssl.so

Last edited by otacon (2009-02-12 02:52:26)


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#2 2009-02-10 01:32:13

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: apache mysql-php (solved)

is your php modual loaded in apache?

Offline

#3 2009-02-10 02:15:01

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Re: apache mysql-php (solved)

yes and my php tested working.


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#4 2009-02-10 05:24:52

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: apache mysql-php (solved)

not sure, I just installed lamp myself last night and everything is working.
go over the wiki again and make sure you didn't miss a step somewhere
if that dont help maybe try reinstalling mysql

Offline

#5 2009-02-11 02:14:38

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Re: apache mysql-php (solved)

well it looks like my hard-drive is defective so I guess I will be reinstalling everything


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#6 2009-02-11 02:53:11

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: apache mysql-php (solved)

From my understanding when you enable a module in php, you need to restart the web daemon (httpd, lighttpd, etc...) for it to take effect.


Website - Blog - arch-home
Arch User since March 2005

Offline

#7 2009-02-11 19:30:53

PinkFloydYoshi
Member
From: United Kingdom
Registered: 2008-11-20
Posts: 29

Re: apache mysql-php (solved)

Make sure you have the MySQL Client Libraries installed. Really, just doing "pacman -S mysql" should do the trick (While installing all the server essentials), but it seems to have not worked in this instance, but indeed, make sure you restart the httpd (/etc/rc.d/httpd restart) before trying again, it'll reload the httpd.conf and php.ini files then.

Offline

#8 2009-02-12 02:51:51

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Re: apache mysql-php (solved)

I had a bad hard-drive so after reinstalling arch and mysql it just started working. Don't know what I did wrong sry.

Thanks guys


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#9 2009-04-27 18:53:46

king.flasher.dave
Member
From: Berlin
Registered: 2008-11-25
Posts: 140
Website

Re: apache mysql-php (solved)

hmm, this is really really awkward. i have the same problem and my partition is not corrupted (as far as i know).
i've setup lamp on my new laptop and everything works just fine, but not on my home pc.
this really sucks! sad

any suggestions?


Speak when you are angry and you will make the best speech you'll ever regret.

Offline

#10 2010-01-25 23:20:00

ch1pz
Member
Registered: 2010-01-25
Posts: 10

Re: apache mysql-php (solved)

i have the same problem and i solved this with a little change in php.ini

i think you have to change php extension directory to this

extension_dir = "/usr/lib/php/modules/"

Offline

Board footer

Powered by FluxBB