How can I install PHPmyadmin using homebrew, if that possible. I'm using Mac 10.7.

I installed Homebrew, and it's working perfectly. I use it to download php 5.4 and mysql. Both are working perfectly, and also the homebrew, and it's updated.

migrated from stackoverflow.com Apr 5 '13 at 0:47

This question came from our site for professional and enthusiast programmers.

  • How about using XAMPP or MAMP ? Much easier to maintain & use (though the versions may not be up-to-date) – Raptor Apr 4 '13 at 16:48

This is the command if you have homebrew installed:

brew install phpmyadmin
  • doesnt work anymore – Marcelo Filho Apr 3 '17 at 13:33
  • 1
    doesnt work anymore – theArc May 16 '17 at 14:28
  • Would be nice if you would add some guide on how to use/access it after the installation. – Tadej May 27 '17 at 11:39

You may need to set up some dependencies first. Here's what I had to do:

brew tap homebrew/dupes
brew tap homebrew/homebrew-php
brew install phpmyadmin

This information was from the homepage for Homebrew-PHP, "a centralized repository for PHP-related brews".

  • 1
    there is no github repo josegonzales/homebrew-php anymore so please use "brew tap homebrew/homebrew-php", it worked for me – nerdess Sep 3 '14 at 13:07
  • @nerdess Thanks for that -- I have updated my answer. – Bennett McElwee Oct 3 '16 at 22:13

as of this writing, brew install homebrew/php/phpmyadmin works


This page gives great instructions: https://coolestguidesontheplanet.com/set-amp-osx-10-9-mavericks-homebrew/

  • Please read the question again carefully. Your answer does not answer the original question. OP is using 10.7. – DavidPostill Nov 17 '16 at 0:11

Follow These Steps:-

  1. Install Phpmyadmin:

brew install phpmyadmin

  1. Now, enter below command and follow the instructions as mentioned:

brew info phpmyadmin

  1. Apache Restart

Apache Restart

  1. Open Phpmyadmin:


  1. If you are unable to login with phpmyadmin :

    Change in phpmyadmin config file [/usr/local/etc/phpmyadmin.config.inc.php]

$cfg['Servers'][$i]['host'] = '';

Now You Are Good To Go!!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.