簡體   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