2016-07-23 12 views
5

Ich habe versucht, phpmyadmin mit selbstgebraut zu installieren und zu konfigurieren. Zur Installation habe ich die Befehle brew install phpmyadmin verwendet und dies ist die Zusammenfassung der Nachricht, die im Terminal gedruckt wurde.Installieren von phpmyadmin mit selbstgebrautem

==> 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 

Ich folgte den Befehl am Terminal ausgegeben, obwohl dies, wenn ich in die URL http://localhost/phpmyadmin in Safari Typen I noch mit der Fehlermeldung am Ende, Safari can't open the page "localhost/phpmyadmin" because Safari can't connect to the server "localhost". Ich denke, es ist möglich, dass ich die Cookie-Konfiguration korrekt in der Datei phpmyadmin.config.in.php eingestellt habe, aber nicht sicher bin, wie ich das korrigieren kann.

Antwort

2

Ich fand, dass die Anweisungen nicht vollständig sind, haben Sie auch:

  1. entfernen Sie den Kommentar '#' am Anfang in /etc/apache2/httpd.conf für LoadModule- Module php5_module:

    LoadModule php5_module libexec/apache2/libphp5.so 
    
  2. Bearbeiten Sie die DirectoryIndex- Einstellungen in /etc/apache2/httpd.conf zu:

    DirectoryIndex index.php index.html home.pl index.cgi 
    
  3. Speichern Sie die Datei ...

  4. starten Apache Webserver in Terminal-Anwendung:

    sudo apachectl start 
    

    Wenn es bereits gestartet ist, wird es eine Meldung angezeigt: "Service bereits geladen", in diesem Fall laufen:

    sudo apachectl restart 
    
  5. zum http://localhost/phpmyadmin

    die Seite mehrmals aktualisieren (vielleicht ein vorhergehender Zustand zwischengespeichert wurde ..)

+0

Es funktioniert für mich! In meinem Fall sind die geheimen Blowfish- und Kommentarzeilen nicht notwendig. Danke Champ! –