forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 install => Topic started by: LaurentR2D2 on April 24, 2016, 12:16:43 am

Title: Coppermine on MAMP : problem with PHP/MySql
Post by: LaurentR2D2 on April 24, 2016, 12:16:43 am
Hello,

I can't install Coppermine with MAMP on my Mac. I get the following error :

PHP does not have MySQL support enabled.

which is wrong, since I have wordpress installed with MAMP and it's working fine. How can I fix that ?

Thank you
Title: Re: Coppermine on MAMP : problem with PHP/MySql
Post by: ron4mac on April 24, 2016, 03:56:28 am
Your MAMP setup my have MySQLi setup instead of MySQL. Or it could be PHP 7, which no longer supports MySQL (in favor of MySQLi). Wordpress may have no issues using MySQLi, but CPG 1.5.x does.
You may need the 1.6 version of Coppermine (not quite yet freely available) that can use MySQLi and is PHP 7 compatible.
Title: Re: Re: Coppermine on MAMP : problem with PHP/MySql
Post by: LaurentR2D2 on April 24, 2016, 12:42:30 pm
Your MAMP setup my have MySQLi setup instead of MySQL. Or it could be PHP 7, which no longer supports MySQL (in favor of MySQLi). Wordpress may have no issues using MySQLi, but CPG 1.5.x does.
You may need the 1.6 version of Coppermine (not quite yet freely available) that can use MySQLi and is PHP 7 compatible.

MAMP was using PHP 7. I've changed the settings so it uses PHP 5.6.10 instead, and Coppermine install went fine. Wordpress is still happy too :)

Thank you