如何在CENTOS服务器上托管laravel 5.2

时间:2016-06-13 17:13:07

标签: laravel centos hosting laravel-5.2 shared-hosting

我正在尝试在CENTOS服务器(共享主机)上托管我的laravel 5.2项目我遵循了本教程 https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e

但是当我尝试在线运行时,我得到一个空白页面。 我检查了我的日志我收到了这个错误

AH01276:无法提供目录/ var / www / html:找不到匹配的DirectoryIndex(index.html,index.php,index.php),以及Options指令禁止的服务器生成的目录索引

然后我按照http://www.liquidweb.com/kb/apache-error-no-matching-directoryindex-index-html-found-solved/来解决这个问题,但我仍然在日志中看到一个空白页面,但是仍然有相同的错误。

请非常感谢任何帮助。

提前致谢。

2 个答案:

答案 0 :(得分:0)

您应该将Web服务器指向Laravel项目目录中的公共目录,而不是它的根目录。

答案 1 :(得分:0)

我必须将主机文件中的apache重定向到项目文件夹