Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lluis96's avatar

Homestead error on windows

I'm getting this error:

C:/Users/Lluis/Homestead/scripts/homestead.rb:125:in configure': undefined methodeach' for "\u00D4\u00C7\u00F6 c:/Users/Lluis/.ssh/id_rsa":String (NoMethodError)

I see in others questions here on Laracast maybe it's an error of paths, but I check it and not. Here's my Homestead.yaml file.

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

authorize: c:/Users/Lluis/.ssh/id_rsa.pub

keys: — c:/Users/Lluis/.ssh/id_rsa

folders: - map: e:/Homestead_Projects to: /home/vagrant/code

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

databases: - homestead

If someone can help me will be great, thanks!

0 likes
3 replies
Dunsti's avatar

\u00D4\u00C7\u00F6 these are unicode-characters! (See the output of your error-message)

Try to find them, and eliminate them:

  • Check your Homestead.yaml if there are such characters (maybe with a hex-editor)
  • Check the encoding of Homestead.yaml (if it is UTF-8, make sure it is without BOM)
  • Check the encoding of your ssh-keys (id_rsa and id_rsa.pub) - here again, if it is UTF-8 make sure it is without BOM

Hope that helps.

lluis96's avatar

Hi @Dunsti I solved the error, now looks like here:

authorize: c:/Users/Lluis/.ssh/id_rsa.pub

keys:

  • c:/Users/Lluis/.ssh/id_rsa

folders: - map: d:/Homestead_Projects to: c:/Users/Lluis/Projects

sites: - map: homestead.app to: c:/Users/Lluis/Projects/puvik/public

databases: - homestead

I'm on Windows, so my real path are this:

C:\Users\Lluis\Projects (Inside projects I have other folders, like puvik).

And also I have this path D:\Homestead_Projects

My idea it's when I'm working on C:\Users\Lluis\Projects\Nameofproject\public at the same time copy to D:\Homestead_Projects

actually I get "No input file selected" on webpage, seems like URL it's not correctly. You can see the error?

Dunsti's avatar

What you are trying to do will not work. The folders-Section is there to map a windows-folder (on your host-machine) to a linux-folder (inside your VM)

folders:
    - map: c:/your_windows_path to /your_linux_path

Please or to participate in this conversation.