我尝试使用 home-brew 安装和配置 phpmyadmin。为了安装我使用了命令brew install phpmyadmin
这是终端中打印的消息的摘要。
==> 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
尽管当我输入网址时,我还是按照终端输出中的说明进行操作http://localhost/phpmyadmin http://localhost/phpmyadmin进入 safari 我仍然收到错误消息,Safari can't open the page "localhost/phpmyadmin" because Safari can't connect to the server "localhost"
。我认为我可能已在 phpmyadmin.config.in.php 文件中正确设置了 cookie 配置,但不确定如何纠正此问题。
我发现说明不完整,您还必须:
-
删除 /etc/apache2/httpd.conf 中 LoadModule php5_module 开头的“#”注释:
LoadModule php5_module libexec/apache2/libphp5.so
-
将 /etc/apache2/httpd.conf 中的 DirectoryIndex 设置编辑为:
DirectoryIndex index.php index.html home.pl index.cgi
保存文件...
-
在终端应用程序中启动 Apache Webserver:
sudo apachectl start
如果它已经启动,它将显示一条消息:“服务已加载”,在本例中运行:
sudo apachectl restart
Go to http://localhost/phpmyadmin http://localhost/phpmyadmin
稍等一下,然后刷新页面几次(可能之前的状态已被缓存或服务尚未启动..)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)