Newbie to laravel homestead and vagrant and struggling to get my site to load in the browser. Everything looks as though its running, successfully ran vagrant up.
When i type url http://local.bookings.com:8000/ I receive message "This webpage is not available"
I should point out however that I am on Windows 7 and have nothing visibly running in Oracle VM VirtualBox Manager.
Homestead.yaml
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: c:/Users/me/.ssh/github_rsa.pub
keys:
- c:/Users/me/.ssh/github_rsa
folders:
- map: /Users/me/documents/projects/bookings
to: /home/vagrant/Code
sites:
- map: local.bookings.com
to: /home/vagrant/Code/bookings/public
variables:
- key: APP_ENV
value: local
hosts file
127.0.0.1 local.bookings.com
Edit the host file as
192.168.10.10 local.bookings.com
Hope this will work.
I had this problem, make sure you run homestead up or vagrant up and change the host file to 192.168.10.10 local.bookings.com
Related
I am getting the "No input file specified" error when running the app in the browser.
It should provide me with the Laravel home page.
Homestead.yaml
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Code
to: /home/vagrant/Code
sites:
- map: laravel6.test
to: /home/vagrant/Code/laravel6.test/public
hosts file
#
127.0.0.1 localhost
192.168.10.10 laravel6.test[enter image description here][1]
Here's how to fix it you need to have your homestead.yaml file settings correct. If you want to know how its done follow Jeffery Way tutorial on homestead 2.0 https://laracasts.com/lessons/say-hello-to-laravel-homestead-two.
Now to fix "Input not specified" issue you need to ssh into homestead box and type
"serve domain.app /home/vagrant/Code/path/to/public/directory" this will generate a serve script for nginx. You will need to do this everytime you switch projects
The issue is I can't ping or curl any sites inside homestead, below is my homestead.yaml but when I tried to run in homestead terminal
curl -GET http://modules-api.local I am getting an error below
could not resolve host: modules-api.local
but when trying to curl/ping external websites like
curl -GET http://facebook.com I am getting the expected response, the error only occurs when trying to curl sites inside homestead
---
ip: "192.168.10.10"
memory: 4096
cpus: 1
provider: virtualbox
mongodb: true
authorize: /Users/Edgar/.ssh/id_rsa.pub
keys:
- /Users/Edgar/.ssh/id_rsa
folders:
- map: F:/code
to: /home/vagrant/code
sites:
- map: modules-api.local
to: /home/vagrant/code/modules-api/public
- map: auth.local
to: /home/vagrant/code/authserver/public
databases:
- homestead
I got it working
after running vagrant ssh go to sudo nano /etc/hosts
then add the list of projects you want to be accessible in homestead
ex.
127.0.1.1 modules-api.local
I'm trying to set up laravel 5.5 working with homestead.
I've followed the steps here up to and including launching the vagrant box.
However, typing "dev.todoparrot.com" or "192.168.10.10" into browser brings up "No input file specified." error.
Trying
vagrant up --provision
(since I made changes to homestead.yaml) did not fix it.
My homestead.yaml looks like:
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: C:/Users/User/.ssh/id_rsa.pub
keys:
- C:/Users/User/.ssh/id_rsa
folders:
- map: D:/projects/todoparrot
to: /home/vagrant/Code
sites:
- map: dev.todoparrot.com
to: /home/vagrant/Code/todoparrot/public
I've installed laravel 5.5 into "D:/projects/todoparrot" with composer. Running php artisan serve on this folder works normally - template site is found at http://127.0.0.1:8000/.
Running
vagrant ssh
or Putty and navigating to /Code and typing ls returns the same files that are in "D:/projects/todoparrot", so the sync is working.
Changing
sites:
- map: dev.todoparrot.com
to: /home/vagrant/Code/todoparrot/public
to
sites:
- map: dev.todoparrot.com
to: /home/vagrant/Code/public
fixed my problem. Following tutorial without thinking about what I'm doing was the root of my mistake.
I installed Laravel with Homestead and tried to start a project that I created. Therefore I adjusted the Homestead.yaml to:
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Documents/Development/Source/MFServer/
to: /home/vagrant/Code
sites:
- map: local.medifaktor
to: /home/vagrant/Code/MFServer/public
The path is existing but still I get this error message. Can you give me some advice?
I think this only works when you need to reload the file and there is no other problems.
From Jesús' site: http://www.jesusamieiro.com/no-input-file-specified-using-homestead/
“No input file specified” using Homestead - Posted on 02/06/2016
If you see the message “No input file specified” in the browser (using Homestead as development VM machine), one possible problem is that Homestead doesn’t load the parameters from the config file Homestead.yaml
Try to provision the VM another time, running
$ vagrant reload --provision
I am trying to figure out if there is something wrong in my homestead setup
I am following the official direction. In the very end of the direction the tutorial said that accessing http://homestead.app is possible. However when I run the address in my chrome I get the No input file specified. message
I am not sure if this is the default page, so I checked my directory using
homestead ssh
and found out that
- map: /Users/Projects
to: /home/vagrant/Projects
both directory doesn't have any files inside, I am not sure if this is the default behavior, but according to this tutorial there should be a list of file in the folder
app artisan bootsrap composer.json composer.lock ....
I don't remember if homestead comes with a default website, but your homestead.yaml ( you can use homestead edit to open it )file should look like this:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders: //This is where vagrant will look for your projects
- map: ~/Code //This is your host folder
to: /home/vagrant/Code //This is your homestead folder
sites: //These are the urls that nginx will serve
- map: homestead.app
to: /home/vagrant/Code/homestead/public
- map: site2.app
to: /home/vagrant/Code/site2/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
Usually, homestead comes with a Code folder where you can find the laravel project (if there is one by default).
Also, remeber to add the urls to your hosts files.