如何在不运行的Artisan Laravel? [英] How to run Laravel without Artisan?
问题描述
我有PHP与Apache2的,我想没有工匠运行Laravel框架,但我不能!有谁知道如何在不运行工匠Laravel?
I have PHP with Apache2 and I want to run Laravel Framework without Artisan but I can't! Does anyone know how to run Laravel without Artisan?
推荐答案
我已经解决了这个问题。这个问题是在我的htaccess和mod_rewrite的(Apache2的)。现在我只能通过键入本地主机/公共连接到我的应用程序。
I've solved the problem. The problem was in my htaccess and in mod_rewrite (Apache2). Now I can connect to my application only by typing localhost/public..
如果有人想使应用程序公开,越容易和最快的方法是:
- 重命名根目录下的server.php文件中,的index.php
- 从公共文件夹移动你的.htaccess到根目录
- 让你的目录的Apache2访问(将所有文件的权限为777)
If anyone wants to make the application public, the more easy and fastest way is: - Rename the "server.php" file in root directory, in "index.php" - Move your .htaccess from public folder to root directory - Make your directory accessible to Apache2 (set all file permissions to 777).
感谢所有用户的帮助! :)
Thanks to all users for help! :)
这篇关于如何在不运行的Artisan Laravel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!