nginx - Larval Homestead cannot be accessed normally after installation
PHPz
PHPz 2017-05-16 16:52:19
0
4
557

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.

PHPz
PHPz

学习是最好的投资!

reply all (4)
某草草

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!

          Latest Downloads
          More>
          Web Effects
          Website Source Code
          Website Materials
          Front End Template
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!