Install phpmyadmin using home-brew

I tried to install and configure phpmyadmin using home-brew. For installation, I used the brew install phpmyadmin commands, and this is a summary of the message printed in the terminal.

 ==> Summary 🍺 /usr/local/Cellar/php71/7.1.0-beta.1: 342 files, 50.3M, built in 7 minutes 29 seconds ==> Installing homebrew/php/phpmyadmin ==> Downloading https://github.com/phpmyadmin/phpmyadmin/archive/RELEASE_4_6_2.t ==> Downloading from https://codeload.github.com/phpmyadmin/phpmyadmin/tar.gz/RE ######################################################################## 100.0% ==> 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/Cellar/phpmyadmin/4.6.2/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.6.2: 2,256 files, 63.2M, built in 39 seconds 

I followed the instructions on the output of the terminal, despite this, when I enter the URL http: // localhost / phpmyadmin in safari. I still get the error message, Safari can't open the page "localhost/phpmyadmin" because Safari can't connect to the server "localhost" . I think it is possible that I configured the cookie correctly in the phpmyadmin.config.in.php file, but I don’t know how I can fix it.

+5
source share
1 answer

I found that the instructions are not complete, you also need:

  • Remove the comment "#" at the beginning in / etc / apache 2 / httpd.conf for LoadModule php5_module:

     LoadModule php5_module libexec/apache2/libphp5.so 
  • Change the DirectoryIndex options in the / etc / apache 2 / httpd.conf file:

     DirectoryIndex index.php index.html home.pl index.cgi 
  • Save the file ...

  • Launch the Apache web server in a terminal application:

     sudo apachectl start 

    If it is already running, it will show you a message: "the service is already loaded", in this case, run:

     sudo apachectl restart 
  • Go to http: // localhost / phpmyadmin

    Refresh the page several times (the previous state may have been cached.)

+2
source

All Articles