homebrew phpmyadmin 설치 이후 실행 방법

조회수 2176회

안녕세요 ^ ^ 얼마전에 맥에서 프로그램 설치를 도와주는 homebrew라는 것을 알게되어서 mamp 설정을 해보고있습니다

https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions 위에 내용들을 떠듬떠듬 따라하면서 mysql php mysql 은 어찌어찌 설치를 완료 했는데요

phpmyadmin 설치에서 문제가 생겨서 질문드립니다 ^ ^

brew install phpmyadmin

명령으로

설치는 잘 된것 같은데요 localhsot/phpmyadmin 접속을 하면 404 Not Found 라고만 뜹니다

Jung-ui-MacBook-Pro:~ bill$ brew install phpmyadmin
==> Installing phpmyadmin from homebrew/php
==> Installing dependencies for homebrew/php/phpmyadmin: php56-mcrypt
==> Installing homebrew/php/phpmyadmin dependency: php56-mcrypt
==> Downloading https://homebrew.bintray.com/bottles-php/php56-mcrypt-5.6.30_4.s
######################################################################## 100.0%
==> Pouring php56-mcrypt-5.6.30_4.sierra.bottle.1.tar.gz
==> Caveats
To finish installing mcrypt for PHP 5.6:
  * /usr/local/etc/php/5.6/conf.d/ext-mcrypt.ini was created,
    do not forget to remove it upon extension removal.
  * Validate installation via one of the following methods:
  *
  * Using PHP from a webserver:
  * - Restart your webserver.
  * - Write a PHP page that calls "phpinfo();"
  * - Load it in a browser and look for the info on the mcrypt module.
  * - If you see it, you have been successful!
  *
  * Using PHP from the command line:
  * - Run `php -i "(command-line 'phpinfo()')"`
  * - Look for the info on the mcrypt module.
  * - If you see it, you have been successful!
==> Summary
🍺  /usr/local/Cellar/php56-mcrypt/5.6.30_4: 7 files, 583.6KB
==> Installing homebrew/php/phpmyadmin
==> Downloading https://homebrew.bintray.com/bottles-php/phpmyadmin-4.7.1.sierra
Already downloaded: /Users/bill/Library/Caches/Homebrew/phpmyadmin-4.7.1.sierra.bottle.tar.gz
==> Pouring phpmyadmin-4.7.1.sierra.bottle.tar.gz
==> 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
  <Directory /usr/local/share/phpmyadmin/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    <IfModule mod_authz_core.c>
      Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
      Order allow,deny
      Allow from all
    </IfModule>
  </Directory>
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 ...)

==> Summary
🍺  /usr/local/Cellar/phpmyadmin/4.7.1: 1,736 files, 29.6MB

중간부분에 httpd.conf 파일에 추가하라는 부분이 있어서

Webserver configuration example (add this at the end of
your /etc/apache2/httpd.conf for instance) :
  Alias /phpmyadmin /usr/local/share/phpmyadmin
  <Directory /usr/local/share/phpmyadmin/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    <IfModule mod_authz_core.c>
      Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
      Order allow,deny
      Allow from all
    </IfModule>
  </Directory>

추가했는데요 역시나 localhsot/phpmyadmin 접속을 하면 404 Not Found 라고만 뜹니다

경로 문제 인것 같은데.. 혹시 어떤 파일에 어떤 부분을 수정해야 하는지 알고 계신 분이 있으실 까요?

아니면 혹시 brew를 통해 설치된 프로그램들을 실행하는 명령어가 따로 있을까요?

굿밤되시구요 ^ ^

  • (•́ ✖ •̀)
    알 수 없는 사용자

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)