php - Problem with setting up phpMyAdmin with Homestead and Vagrant

172

I am trying to install phpMyAdmin with Homestead and Vagrant in Laravel. When I download phpMyAdmin files I ran successful install in git bash, but when I go to http://phpmyadmin.test:8000/ I get error saying 'No input file specified'.

I think that some of my paths are wrong I just can't find which one. Every time I change something I hit vagrant provision command to update everything but it keeps getting the same error. I googled for similar problems, but couldn't find the solution that works for me. Any help is appreciated. Here is my code.

Homestead.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

hosts

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

path to homestead folder

C:\Users\Gacho\Homestead

path to project folder

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

Answer

Solution:

You forgot to use thereal-estate-laravel subfolder.

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

Try

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

People are also looking for solutions to the problem: php - Zizaco / entrust throws error with @permission in blade

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.