title: Installing phpmyadmin with homebrew and nginx
body: <p>I develop Laravel based websites on my MacBook using Valet. Right now I'm working from home and I can't access the database at work so I'm trying to install PHPMyAdmin using Homebrew so I can import a database dump and work locally as well.
  I think my question is similar to this question: <a href="https://stackoverflow.com/questions/38543587/installing-phpmyadmin-with-home-brew">Installing phpmyadmin with home-brew</a>  except I'm using nginx.<br>
  I did get the output after installing:  </p>
  
  <pre><code>==&gt; Installing phpmyadmin from homebrew/php
  ==&gt; Downloading https://homebrew.bintray.com/bottles-php/phpmyadmin-4.7.4.sierra.bottle.tar.gz
  ==&gt; Downloading from https://akamai.bintray.com/44/44d9e5789593f86499263496d6e901ecb9ce1b999e76ee4842268ef35d547c9f?__gda__=exp=1505301978~hmac=b16623e81ca8559fcd18e54c17dee0a6f42cfcd85892fd6f43f8f0dd14e4746c&amp;response-content-disposition=
  ######################################################################## 100.0%
  ==&gt; Pouring phpmyadmin-4.7.4.sierra.bottle.tar.gz
  ==&gt; Caveats
  Note that this formula will NOT install mysql. It is not
  required since you might want to get connected to a remote
  database server.
  
  Webserver configuration example (add this at the end of
  your /etc/apache2/httpd.conf for instance) :
    Alias /phpmyadmin /usr/local/share/phpmyadmin
    &lt;Directory /usr/local/share/phpmyadmin/&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      &lt;IfModule mod_authz_core.c&gt;
        Require all granted
      &lt;/IfModule&gt;
      &lt;IfModule !mod_authz_core.c&gt;
        Order allow,deny
        Allow from all
      &lt;/IfModule&gt;
    &lt;/Directory&gt;
  Then, open http://localhost/phpmyadmin
  
  More documentation : file:///usr/local/opt/phpmyadmin/share/phpmyadmin/doc/
  
  Configuration has been copied to /usr/local/etc/phpmyadmin.config.inc.php
  Don't forget to:
    - change your secret blowfish
    - uncomment the configuration lines (pma, pmapass ...)
  
  ==&gt; Summary
    /usr/local/Cellar/phpmyadmin/4.7.4: 2,345 files, 34.0MB
  </code></pre>
  
  <p>How do I enabled access to phpmyadmin with nginx? 
  <a href="http://localhost/phpmyadmin" rel="nofollow noreferrer">http://localhost/phpmyadmin</a> returns a 404</p>
  
  <p>In case you need more information, let me know. </p>