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

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

《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
最佳答案

重新加载配置试下 vagrant provision

7年前 评论
讨论数量: 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

7年前 评论

我也是,解决了吗?

7年前 评论

重新加载配置试下 vagrant provision

7年前 评论

怎么解决的?

7年前 评论
小花儿

@ljmisa 最佳答案

7年前 评论

vagrant provision后怎么还不好用

7年前 评论

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

7年前 评论

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

7年前 评论

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

7年前 评论

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

7年前 评论

@Foreman-PHP
vagrant provision

vagrant reload

7年前 评论
南海硬邦邦

@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年前 评论

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