Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: During install: PHP does not have MySQL support enabled.  (Read 5247 times)

0 Members and 1 Guest are viewing this topic.

bluefan

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
During install: PHP does not have MySQL support enabled.
« on: April 08, 2006, 04:00:03 pm »

Hi everyone,

When I tried to install coppermine 1.4.4, I got this error:

The following errors were encountered and need to be corrected first:
PHP does not have MySQL support enabled.

This really looks strange, I installed php 5, and looking at info.php I see:
 '--with-mysql=shared,/usr/nekoware/mysql4'
Which points to my mysql4 installation. And mysql works fine.
phpMyAdmin handles mysql also fine, so it must be working, right? what can it be? I've got mysql, I've got php5, is there some other strange way those two don't see eachother? The configuration looks perfect.
I'm using Irix 6.5.22 as OS.
« Last Edit: April 09, 2006, 09:11:19 am by GauGau »
Logged

Nibbler

  • Guest
Re: During install: PHP does not have MySQL support enabled.
« Reply #1 on: April 08, 2006, 04:02:52 pm »

That message is triggered when the function mysql_connect does not exist and so Coppermine can't connect to the db. Maybe you have phpmyadmin set to use mysqli, which Coppermine does not yet support.
Logged

bluefan

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: During install: PHP does not have MySQL support enabled.
« Reply #2 on: April 08, 2006, 04:15:00 pm »

I just checked, I installed mysql, not the mysqli.
Strange

EDIT: might be just a noob thing:
In the php.ini, I found Dynamic Extensions, and mysql was commented out.
Would this be the problem? The configure command I found in info.php gave (also) this:
 '--with-mysql=shared,/usr/nekoware/mysql4' '--with-mysqli=shared,/usr/nekoware/mysql4/bin/mysql_config'
Wouldn't that be enough?
« Last Edit: April 08, 2006, 04:22:55 pm by bluefan »
Logged

Nibbler

  • Guest
Re: During install: PHP does not have MySQL support enabled.
« Reply #3 on: April 08, 2006, 04:22:07 pm »

Do you have a full section in phpinfo named 'MySQL' or can you only see it mentioned in the configure command ?
Logged

bluefan

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: During install: PHP does not have MySQL support enabled.
« Reply #4 on: April 08, 2006, 04:25:21 pm »

Just the configure command.
Is that because the mysql is commented out in the  Dynamic Extensions section of php.ini?

EDIT: Consider me a noob, outcommenting the mysql in php.ini was enough to get coppermine going, info.php gives now a mysql section, all is wel. Stil wondering about phpmyadmin, how it still got to mysql.
« Last Edit: April 08, 2006, 08:21:48 pm by bluefan »
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.