Support the ongoing development of Laravel.io →
Installation Configuration

Hi,

I've been at this for hours and I hope someone can help. I can't seem to get Homstead running on my PC. I'm running windows 8.1, and I've checked to ensure xampp is not running. Here's what's happening:

I've installed virtual box and vagrant so far so good. I then try to load everything via "vagrant up" and I get the error:

"Vagrant cannot forward the specified ports on this VM since they would collide with some other application..." and it indicates I should configure my vagrant file with:

"config.vm.network: forwarded_port, guest: 80, host: 1234"

So I open my vagrant file and edit it like so:

VAGRANTFILE_API_VERSION = "2"

path = "#{File.dirname(__FILE__)}"

require 'yaml'
require path + '/scripts/homestead.rb'

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  config.vm.network :forwarded_port, host: 8000, guest: 8001
  Homestead.configure(config, YAML::load(File.read(path + '/Homestead.yaml')))
end

When I try to run vagrant up I get the same error. I've tried netstat -ab to see what's running on that port but I don't see anything listed.

I'm not very experienced with servers and setup, can anyone help? Thanks in advance.

Last updated 3 years ago.
0

Remove that line from your vagrant file as it will be overwritten in Homestead.configure(...) which is defined in scripts/Homestead.rb. Instead you want to edit Homestead.rb, look for the following lines

    # Configure Port Forwarding To The Box
    config.vm.network "forwarded_port", guest: 80, host: 8000
    config.vm.network "forwarded_port", guest: 3306, host: 33060
    config.vm.network "forwarded_port", guest: 5432, host: 54320
Last updated 3 years ago.
0

You sir are awesome! Thanks. One think I've found is that most documentation on vagrant and servers just assumes you know where to find the files they tell you to edit. This leaves newbies in the dark.

Thanks again!

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

TheMonk themonk Joined 5 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.