与自制和nginx安装phpmyadmin

技术标签: mysql  nginx  phpmyadmin

我使用Vealet在MacBook上开发了基于Laravel的网站。现在我在家工作,无法在工作中访问数据库,因此我尝试使用自制安装PhpMyAdmin,以便我可以在本地导入数据库转储并在本地工作。我认为我的问题与这个问题相似: 安装phpmyadmin与自家酿造 除了我正在使用nginx。
安装后我确实得到了输出:

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

如果您需要更多信息,请告诉我。

看答案

我设法使它与工作能力合作。事实证明,我的MacBook的配置还有更多问题,因此我执行了新的安装并从头开始。

由于我使用Laravel和Laravel代客来开发网站,因此我必须首先安装作曲家。然后,我使用描述在 文档 使用自制。之后,我遵循了步骤 导游 @tarun Lalwani链接到PHP FPM部分。

然后我下载了最新版本的 phpmyadmin 手动将Extracted文件夹更名为phpmyadmin,并将其移至我的代客公园目录。
导航到 http://phpmyadmin.dev 现在正确显示phpmyadmin,它可以很好地工作。


智能推荐

Nginx安装与使用

Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,并在一个BSD-like 协议下发行。由俄罗斯的程序设计师Igor Sysoev所开发,供俄国大型的入口网站及搜索引擎Rambler(俄文:Рамблер)使用。其特点是占有内存少,并发能力强,事实上nginx的并发能力确实在同类型的网页服务器中表现较好。(百度百科- h...

Nginx简介与安装

| 简介 Nginx是一个高性能的HTTP和反向代理服务器,可以作为负载均衡服务器,也是一个IMAP/POP3/SMTP服务器。它的特点是占有内存少,并发能力强。目前有很多大型公司都在使用Nginx,比如:百度、京东、新浪等。Nginx有两种安装方式:yum安装和源码包安装,下面我们分别介绍一下,最后对两种安装方式再进行一下对比。 | yum安装 1、环境  &nbs...

Nginx安装与使用

Nginx 是什么呢?就我的体验,通俗的来说,就是一个web  server。 今天我第一次接触了它。因为cesium needs to run within a web server.为了打开含有cesium项目的index.html,我被成杰师兄安利了它。 第一步:安装:到Nginx的官网,下载后,解压           ...

Nginx安装与配置

Linux(CentOS)下,下载安装Nginx并配置 一、yum安装Nginx 运行命令yum -y install nginx 然后自动安装   Yum安装&编译安装的区别: ①编译安装使用的是源码编译后进行安装,这样可以在各个Linux系统下使用,而yum安装只能在redhat或centos系统使用; ②编译安装的源码包可以获取官方最...

nginx安装与配置

Windows 搭建Nginx   Nginx的作用: 1、作为 Web 服务器:相比 Apache,Nginx 使用更少的资源,支持更多的并发连接,体现更高的效率,这点使 Nginx 尤其受到虚拟主机提供商的欢迎。能够支持高达 50,000 个并发连接数的响应,感谢 Nginx 为我们选择了 epoll and kqueue 作为开发模型 2、作为负载均衡服务器:Nginx 既可以在内...

猜你喜欢

无意中发现看书也是一种美

2012年4月25日晚,翻翻自己喜欢的一门语言学习书(python参考手册),无意中发现书中夹着之前的明信片(有一次和同事一起去前门邓丽君音乐生活馆留下来的),感觉学习也是一种美!于是乎拍下这不经意的时刻,哈哈!...

香橙派OrangePi PC Plus开发板连接USB以太网卡测试说明

1) 目前测试过能用的 USB 以太网卡如下所示,其中 RTL8153 USB 千兆网卡插入开 发板的 USB 2.0 Host 接口中测试可以正常使用,但是速率是达不到千兆的,这点请 注意   2) 首先将 USB 网卡插入开发板的 USB 接口中,然后在 USB 网卡中插入网线,确 保网线能正常上网,如果通过 dmesg 命令可以看到下面的 log 信息,说明 USB 网卡...

计算机网络基础:Vlan,网关,dns吗,子网掩码等!面试必备!

很多朋友多次问到什么是网关、dns、子网掩码,三层交换机,它们定位的用途;确实,因为网络技术在弱电中确实应用非常广泛,我们平时在 vip 技术群中也是不断的讨论到网关、vlan、三层交换机或子网掩码等问题,今天我们就一起用通俗方式一次性了解清楚。 一、什么是 vlan? VLAN 中文是 “虚拟局域网”。LAN 可以是由少数几台家用计算机构成的网络,也可以是数以百计的计算机...

乐播科技冯森:我为什么不看好Android电视游戏

(乐播科技的三位创始人,从右往左依次为:冯森、廖峰、陈锡华) 电视在家居生活中扮演的角色重新获得了人们的认知,这块屏幕成为巨头们谋划的方向,其中一个属性便是家庭的娱乐中心。但在国内,各种基于Android平台的电视和盒子又面临游戏内容缺乏的窘境。当然,很多人或者团队都在努力着希望完善这个生态系统,但是好像没有那么简单。 另一方面,苹果系统已经是非常成熟的平台,各类iOS游戏的质量也很高。于是,来自...

Java使用阿里云OSS对象存储上传图片

该案例是OSS Java SDK的示例程序,您可以修改endpoint、accessKeyId、accessKeySecret、bucketName后直接运行。 本示例中的并不包括OSS Java SDK的所有功能,详细功能及使用方法,请参看“SDK手册 > Java-SDK”, 链接地址是:https://help.aliyun.com/document_detai...

问答精选

How to extract beta coefficients for interaction effect in R?

I am examining the interaction between a continuous variable (bloodq) and a categorical variable with three levels (ER, RB, and WB). In order to see how the betas differ across tissue types, I would l...

what is the difference between Flatten() and GlobalAveragePooling2D() in keras

I want to pass the output of ConvLSTM and Conv2D to a Dense Layer in Keras, what is the difference between using global average pooling and flatten Both is working in my case. That both seem to work d...

How to invoke a test step with inputs at runtime from groovy script in SOAP UI?

I am writing a validation groovy script for a test step, intended to test a SOAP Web Service. Now, I want to call the same test step, with different input value from the groovy script. Is it possible?...

Wicket pagestore results wrong page

I have a problem with my web application with wicket. I am using wicket 6.14. I can't say exactly what the problem is, but I can describe the problem. I am using a self written pagestore, which uses h...

Unity load files from outside of resources folder

In unity is it possible to load a resource that is out side of the resources folder. I want the user to be able to set a textAsset variable from a file outside of the Assets directory entirely. You ca...

相关问题

相关文章

热门文章

推荐文章

相关标签

推荐问答