Install php 5.4 on Mac OSX Lion from homebrew - no mysqli extension

I installed php 5.4 from homebrew as well as mysql. I am using the built-in Apache server with websharing.

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

I took the following steps: in php.ini I installed:

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

Then restarted Apache.

When I check with phpinfo() , I don't see the Mysql extension. An error in phpMyAdmin still exists.

Basically I do not see how I can check if Mysqli came with my PHP installation or not.

+6
source share
1 answer

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 this helps!

+24
source

Source: https://habr.com/ru/post/921695/


All Articles