打开 http://homestead.test/ 显示 No input file specified. ?

打开 http://homestead.test/显示 No input file specified.

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
最佳答案

重新加载配置试下 vagrant provision

6年前 评论
讨论数量: 16

I met the same problem.. I fix it by adding a symbolic link:

cd ~/Code
ln -s ../Laravel Laravel

Don't know why...

In fact, after downloading the office box (v6.1.0), there is nothing under ~/code. In a word, u must create the directory Laravel/public by yourself.

cd ~/code; mkdir -p Laravel/public; cd Laravel/public; vi index.php 

and type in some contents such as phpinfo();

and u will find the correct page shown at http://homestead.test/

This is WHY!!!
file

6年前 评论

我也是,解决了吗?

6年前 评论

重新加载配置试下 vagrant provision

6年前 评论

怎么解决的?

6年前 评论
小花儿

@ljmisa 最佳答案

6年前 评论

vagrant provision后怎么还不好用

6年前 评论

I met the same problem.. I fix it by adding a symbolic link:

cd ~/Code
ln -s ../Laravel Laravel

Don't know why...

In fact, after downloading the office box (v6.1.0), there is nothing under ~/code. In a word, u must create the directory Laravel/public by yourself.

cd ~/code; mkdir -p Laravel/public; cd Laravel/public; vi index.php 

and type in some contents such as phpinfo();

and u will find the correct page shown at http://homestead.test/

This is WHY!!!
file

6年前 评论

@errortm 现在解决了吗 我也碰到了vagrant provision后还是不能用

6年前 评论

@罪人 解决了,是yaml配置中,目录设置错误,你可以检查下

6年前 评论

@errortm 那我不太一样 我看了yaml配置 我觉得没毛病

6年前 评论

@Foreman-PHP
vagrant provision

vagrant reload

6年前 评论
南海硬邦邦

@hustnzj Thanks!

6年前 评论

@hustnzj 正解 出现 Not input file specified. 应该是路径问题,到 ~/Homestead/Homestead.yaml 改一下 sites 路径,再切回来 执行 vagrant provision 就可以了

6年前 评论

查了半天,我也没看到什么地方错误,后来直接百度了,发现是site的目录映射出的问题,Code大写改成小写就可以了,它不是真实Mac上的Code,是虚拟机里面的目录。
1.Code->code
2.vagrant provision
3.打开那个地址就可以访问了,如果还不可以访问,需要vagrant ssh进虚机,创建Laravell/public & vi index.php

6年前 评论

file vagrant provision 之后报错。不管怎么改路径都不管用

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!