403 Forbidden nginx/1.6.2 on Laravel Homestead installation - laravel

I'm out of ideas about what I can do to finish my Laravel Homestead install.
Some infos :
laravel/homestead (virtualbox, 0.2.4)
vagrant base is lucid32. I can't use the serve command with SSH.
Here is my homestead.yaml :
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /Users/bolos/base
to: /home/vagrant/base
sites:
- map: homestead.app
to: /home/vagrant/base/homestead/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
provider: virtualbox
# blackfire:
# - id: foo
# token: bar
I don't know what else I can provide to help, but feel free to ask.
Thank you in advance.

According to your configuration you must replace:
to: /home/vagrant/base/homestead/public
with:
to: /home/vagrant/base/public
And this should work if you have Laravel on /Users/bolos/base.

Related

Homestead - This site refused to connect

I installed Virtual Box and Vagrant. I also set up my Homestead, but when I try to run my domain it doesn't load and shows the error - this site refused to connect. Here's my homestead.yaml file :
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: C:/Users/Asus/Desktop/Projects/MVC
to: /home/vagrant/MVC
sites:
- map: infoStudio.test
to: /home/vagrant/MVC/public
databases:
- homestead
yaml files require specific new lines and indentations.
Take a look at this example.
For more information, take a look at the wiki.
The correct syntax for your file would be:
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: C:/Users/Asus/Desktop/Projects/MVC
to: /home/vagrant/MVC
sites:
- map: infoStudio.test
- to: /home/vagrant/MVC/public
databases:
- homestead

Homestead.yaml file not adding project folder in vagrant | Mac os

I am using mac os and just install vagrant and configured homestead.yaml file but after vagrant up command also tried vagrant reload --provision
Also database not created in mysql.
Here is my homestead.yaml file
ip: "192.168.10.10"
memory: 3048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /Users/myname/mytest
to: /home/vagrant/mytest
sites:
- map: mytest.local
to : /home/vagrant/mytest/public
databases:
- mytest
can someone help me ?
Finally, I found the solution.
to add path we need to add ~(tilde) sign it refers as a home directory in mac.
updated yaml file.
ip: "192.168.10.10"
memory: 3048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/myname/mytest
to: /home/vagrant/mytest
sites:
- map: mytest.local
to : /home/vagrant/mytest/public
databases:
- mytest

No input file selected using Homestead

I'm on Windows and i'm trying to work with Laravel Homestead.
Actually I have the problem of "No input file selected" seems like URL it's not correctly.
My real PATH is this:
C:\Users\Lluis\Projects Where I have my projects
And D:\Homestead_Projects where I want to copy it when make vagrant up.
My homestead.yaml file looks like here:
---
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: d:/Homestead_Projects
to: c:/Users/Lluis/Projects
sites:
- map: homestead.app
to: c:/Users/Lluis/Projects/puvik/public
databases:
- homestead
Anyone see the error? Thanks!
Edit Now file looks like here
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Projects
to: /home/vagrant/Projects
sites:
- map: homestead.test
to: /home/vagrant/Projects/puvik/public
databases:
- homestead
Your folder mapping is a little bit off.
Try this:
folders:
- map: c:/Users/Lluis/Projects
to: /home/vagrant/projects
sites:
- map: homestead.test
to: /home/vagrant/projects/puvik/public
Make sure you don't use .app anymore Chrome doesn't like it. use .test
On my case I had to do a vagrant provision to reload the VM
`vagrant provision`

No input file specified on vagrant vm

First off: I'm new to using Laravel. I got the homestead VM up and running with Vagrant. I checked my Homestead.yaml file and it checks out, did the additions to the hosts file as well, and created my blog according to the video tutorials on the VM.
When I run the command "php artisan serve" and try the address it returns, I get an error saying "No input file specified".
Anyone have a fix for this?
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /Users/JeromePapalie/LaravelCode
to: /home/vagrant/Code/Laravel
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
databases:
- homestead
First, you need to check the folder structure.
This is my folder structure.
Here my Homestead.yaml file
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: /Users/kelvin/.ssh/kevin.pub
keys:
- ~/.ssh/kevin
folders:
- map: ~/Documents/Work/kevindev/Code
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
Hope, you already generated ssh key file in your target folder something like this.
And then, open your host vim /etc/hosts and add your homestead.app host
Finally, go to your Homestead folder and type vagrant up command.
That's is.

Homestead not working properly

I have installed vagrant on my machine. I have homestead installed both globally and in my project.
When I run vagrant up it does not work, I am unable to access the url in my browser, it comes up with a blank screen.
So I searched online and found a solution that allowed me to use homestead up by editing my ~/bash_profile and adding the following code:
function homestead() {
( cd ~/Workspace/homestead && vagrant $* )
}
Now when I navigate to my project director and run homestead up it works I am able to access the site via the url in my browser however I encountered another issue, it seemed to be loading from the global homestead.yaml file instead of my project's homestead.yaml file.
When I removed the site from my global homestead.yaml file and put it in my project's homestead.yaml file I kept getting no
input file specified
This is my project's homestead.yaml file:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
hostname: blog
name: blog
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: "~/Workspace/blog"
to: "/home/vagrant/workspace/blog"
sites:
- map: blog.app
to: "/home/vagrant/workspace/blog/public"
databases:
- blog
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
And this is my global homestead.yaml file:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Workspace
to: /home/vagrant/workspace
sites:
- map: homestead.app
to: /home/vagrant/workspace/Laravel/public
databases:
- blog
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
Don't forget to flag --provision after you edited your .yaml file, so
homestead up --provision
OR
homestead reload --provision
Furthermore in your global Homestead.yaml you're syncing also the Homestead folder with the virtual box, that doesn't make much sense.
I would leave that apart and change it's path to ~/Homestead/ so your ~/Workspace/ will contain only the projects.
so change your bash profile accordingly, and change your Homestead.yaml file to reflect this (if you want to run multiple projects on the same box you won't need "projet" yaml file, but just the hometead global yaml file):
folders:
- map: ~/Workspace
to: /home/vagrant/workspace
sites:
- map: homestead.app
to: /home/vagrant/workspace/Laravel/public
- map: blog.app
to: /home/vagrant/workspace/blog/public
Hope this help
Cheers

Resources