繁体   English   中英

使用 Homestead 和 Vagrant 设置 phpMyAdmin 的问题

[英]Problem with setting up phpMyAdmin with Homestead and Vagrant

我正在尝试在 Laravel 中使用 Homestead 和 Vagrant 安装 phpMyAdmin。 当我下载 phpMyAdmin 文件时,我在 git bash 中成功安装,但是当我转到http://phpmyadmin.test:8000/ 时,我收到错误消息“未指定输入文件”。

我认为我的一些路径是错误的,我只是找不到哪一个。 每次我更改某些内容时,我都会点击 vagrant provision 命令来更新所有内容,但它不断收到相同的错误。 我用谷歌搜索了类似的问题,但找不到适合我的解决方案。 任何帮助表示赞赏。 这是我的代码。

宅基地.yaml

ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
  - ~/.ssh/id_rsa

folders:
    - map: C:\laravel-projects
      to: /home/vagrant/code
    - map: /Users/Gacho/code/phpMyAdmin
      to: /home/vagrant/code/phpMyAdmin

sites:
    - map: real-estate-laravel.test
      to: /home/vagrant/code/real-estate-laravel/public
    - map: phpmyadmin.test
      to: /home/vagrant/code/phpMyAdmin/

databases:
    - real-estate-laravel

主机

192.168.10.10 real-estate-laravel.test
127.0.0.1 phpmyadmin.test

宅基地文件夹的路径

C:\Users\Gacho\Homestead

项目文件夹路径

C:\laravel-projects\real-estate-laravel

您忘记使用real-estate-laravel子文件夹。

folders:
    - map: C:\laravel-projects
      to: /home/vagrant/code              <--- missing subfolder here
    - map: /Users/Gacho/code/phpMyAdmin
      to: /home/vagrant/code/phpMyAdmin   <--- missing subfolder here

尝试

folders:
    - map: C:\laravel-projects
      to: /home/vagrant/code/real-estate-laravel
    - map: /Users/Quantox/code/phpMyAdmin
      to: /home/vagrant/code/real-estate-laravel/phpMyAdmin

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM