Search code examples
laravelvagrantvirtualizationhomestead

homestead - This webpage is not available


I do not know where I got stuck, I used already homestead and can not figure out the problem. The virtual machine runs correctly, folders are also mirrored correctly.

$ vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 => 8000 (adapter 1)
    default: 443 => 44300 (adapter 1)
    default: 3306 => 33060 (adapter 1)
    default: 5432 => 54320 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => C:/Users/Roko/Homestead
    default: /home/vagrant/Code => C:/Users/Roko/Homestead/Code
    default: /home/vagrant/Code/geogram => C:/Users/Roko/Homestead/Code/geogram
    default: /home/vagrant/Code/phpmyadmin => C:/Users/Roko/Homestead/Code/phpmyadmin
    default: /home/vagrant/Code/Laravel/public => C:/Users/Roko/Homestead/Code/Laravel/public
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: to force provisioning. Provisioners marked to run always will still run.

I added entries to the hosts file:

127.0.0.1  phpmyadmin.app
127.0.0.1  homestead.app

and this is YAML file:


ip: "192.168.10.10"
memory: 1048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Homestead/Code
      to: /home/vagrant/Code


sites:
    - map: homestead.app
      to: /home/vagrant/Code/Laravel/public

    - map: phpmyadmin.app
      to: /home/vagrant/Code/phpmyadmin/


databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

And I still get This web page is not available for http://homestead.app:8000/ Can someone figure out what am I doing wrong?


Solution

  • Did you tried vagrant reload --provision