I installed Larval Homestead according to the documentation on the official website, but after the virtual machine is started, the site cannot be accessed normally, prompting No input file specified.
The following is the configuration content of Homestead.yaml
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
hostname: jack
name: jack
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: "/Users/Jack/laravel"
to: "/home/vagrant/laravel"
sites:
- map: homestead.app
to: "/home/vagrant/laravel/public"
hhvm: true
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
/Users/Jack/laravel This Laravel package was installed by me using composer. I tested it with php artisan -serve and there was no problem. It can be accessed normally.
This should be a nginx setting problem, right? Is there any welcome to nginx?
I have had this problem, and the solution is to put the domain name configured in the hosts file at the front. As to why, it's not entirely clear. You can try it~
I also have this problem, has the poster solved it
Why do you use Homestead? I set up the LNMP environment directly in VMware's Linux virtual machine, and then used Laravel, and there was no problem at all!