Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : PhpMyAdmin doesn't work with PHP 5.4, 5.5 or 5.6



Normal Mode | Print  

 PhpMyAdmin doesn't work with PHP 5.4, 5.5 or 5.6, Php cannot find libmysqlclient.18.dylib via Apache, but OK from command line (16 Replies, Read 37805 times)
mikenj
Group: Member
Post Group: Newbie
Posts: 6
Status:
I have spent several hours trying to figure out why Phpmyadmin doesn't work with a PHP version other than 5.3. I tried on two Macs with the same result.

The error I get when I enable PHP 5.4, 5.5 or 5.6 when going to PhpMyAdmin is: "The mysqli|mysql extension is missing. Please check your PHP configuration. See our documentation for more information." The help link refers me to /phpmyadmin/doc/html/faq.html#faqmysql but this isn't helpful because the packages are enabled, it just cannot find libmysqlclient.18.dylib. When I go to /cgi-bin/phpinfo.cgi at the bottom of this "PHP Info" page I get:

Quote

Warning: PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.6/lib/extensions/ext/mysqli.so' - dlopen(/Applications/AMPPS/php-5.6/lib/extensions/ext/mysqli.so, 9): Library not loaded: libmysqlclient.18.dylib Referenced from: /Applications/AMPPS/php-5.6/lib/extensions/ext/mysqli.so Reason: image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.6/lib/extensions/ext/pdo_mysql.so' - dlopen(/Applications/AMPPS/php-5.6/lib/extensions/ext/pdo_mysql.so, 9): Library not loaded: libmysqlclient.18.dylib Referenced from: /Applications/AMPPS/php-5.6/lib/extensions/ext/pdo_mysql.so Reason: image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.6/lib/extensions/ext/mysql.so' - dlopen(/Applications/AMPPS/php-5.6/lib/extensions/ext/mysql.so, 9): Library not loaded: libmysqlclient.18.dylib Referenced from: /Applications/AMPPS/php-5.6/lib/extensions/ext/mysql.so Reason: image not found in Unknown on line 0


However, when I run these commands via the command line to see if mysql loads OK it does!

PHP Code

 ➜  AMPPS  pwd
/Applications/AMPPS
➜  AMPPS  php
-5.6/bin/php -'if (extension_loaded("mysqli")) { print_r("loaded"); }'
loaded



I suspect this is a problem with Apache and it's not running PHP with the right arguments or something or using a totally different PHP than the one in AMPPS.

How can I troubleshoot this further?
IP: --   


Threads
 mikenj   PhpMyAdmin doesn't work with PHP 5.4, 5.5 or 5.6, Php cannot find libmysqlclient.18.dylib via Apache, but OK from command line (16 Replies, Read 37805 times)
    |--  mikenj   Forgot to mention,...   on March 2, 2015, 7:40 pm
    |--  drome22   I am having...   on March 3, 2015, 1:11 am
    |--  mikenj   drome22, are you...   on March 3, 2015, 1:15 am
    |--  drome22   mikenj, My error...   on March 3, 2015, 2:10 am
    |--  mikenj   mikenj, My error...   on March 3, 2015, 2:23 am
    |--  mikenj   I found a...   on March 3, 2015, 3:43 am
    |--  Rishi_P   Hi mikenj, Sorry...   on March 3, 2015, 6:12 am
    |--  drome22   mikenj, Thank you...   on March 3, 2015, 1:55 pm
    |--  mikenj   drome22, happy it...   on March 3, 2015, 6:06 pm
    |--  carlituxman   it not solved...   on March 26, 2015, 9:15 am
    |--  Rishi_P   Hi carlituxman, Please...   on March 26, 2015, 10:58 am
    |--  jdn120   I found a...   on March 26, 2015, 1:31 pm
    |--  jdn120   I found a...   on March 26, 2015, 1:31 pm
    |--  jdn120   I found a...   on March 26, 2015, 1:39 pm
    |--  agentnine21   i began with...   on May 25, 2015, 6:09 am
    |--  agentnine21   also, my PHP...   on May 25, 2015, 6:21 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 27, 2024, 1:06 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.036