Home » Php » macos – php 5.4 installation on Mac OSX Lion from homebrew – mysqli extension missing

macos – php 5.4 installation on Mac OSX Lion from homebrew – mysqli extension missing

Posted by: admin July 12, 2020 Leave a comment

Questions:

I installed php 5.4 from homebrew,
and also mysql. I am using the inbuilt Apache Server with websharing.

I have phpMyAdmin installed and it tells me: the mysqli extension is missing.

I did the following steps:
in the php.ini I set:

extension = mysqli.so
mysqli.default_socket = "/tmp/mysql.sock"

Then restarted Apache.

When I check with phpinfo() I do not see any Mysql extension. The error in phpMyAdmin is still there.

I basically do not really see how I could check if Mysqli has come with my PHP install or not.

How to&Answers:

You need to install php with mysql support. So if you already have php54 installed, then:

brew uninstall php54

then

brew install php54 --with-mysql

Hope that helps!