我使用代客在我的MacBook上开发基于Laravel的网站。现在我在家工作,我无法在工作中访问数据库,所以我尝试使用Homebrew安装PHPMyAdmin,以便我可以导入数据库转储并在本地工作。 我想我的问题类似于这个问题:Installing phpmyadmin with home-brew除了我使用nginx。
我没有得到输出安装后:使用自制软件和nginx安装phpmyadmin
==> Installing phpmyadmin from homebrew/php
==> Downloading https://homebrew.bintray.com/bottles-php/phpmyadmin-4.7.4.sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/44/44d9e5789593f86499263496d6e901ecb9ce1b999e76ee4842268ef35d547c9f?__gda__=exp=1505301978~hmac=b16623e81ca8559fcd18e54c17dee0a6f42cfcd85892fd6f43f8f0dd14e4746c&response-content-disposition=
######################################################################## 100.0%
==> Pouring phpmyadmin-4.7.4.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.4: 2,345 files, 34.0MB
如何启用nginx的访问phpMyAdmin? http://localhost/phpmyadmin返回404
如果您需要更多信息,请告诉我。
你更新了nginx配置吗?你是否也运行'php-fpm'?看到这个https://coderwall.com/p/lbaf6q/installing-php-5-4-mysql-phpmyadmin-and-nginx-on-mac-using-homebrew –
对不起,迟到的回应。我不认为我已经更新了nginx配置。 我尝试了以下链接文章中的步骤,但我无法在'/ usr/local/etc/php/7.1/php-fpm.conf'中找到'listen'行。 – Doc
您需要在'/ usr/local/etc/php/7.1/php-fpm.d/www.conf'中进行编辑。默认它使用'127.0.0.1:9000'。如果你具体使用套接字文件,那么你需要改变这个文件,否则你可以在你的nginx配置中使用'127.0.0.1:9000',而不是套接字 –