doo58088 2013-12-19 22:17
浏览 26
已采纳

Laravel安装错误 - 安装后的空白页

I've installed Laravel on a EC2 instance. All permissions have been written and all necessary solutions have been installed. I can access the Laravel directory fine, however when accessing the public folder, all I'm getting is a blank white page. No errors and no "welcome" page that I normally should be seeing. However, this is the error being logged on the server:

PHP Fatal error:  require(): Failed opening required '/var/www/mrktpop/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mrktpop/bootstrap/autoload.php on line 17

Line 17 of autoload.php is as follows:

/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/

require __DIR__.'/../vendor/autoload.php';

Anyone experience this and can extend an offering hand? No /vendor folder exists anywhere on the directory...

  • 写回答

1条回答 默认 最新

  • doushao8421 2013-12-20 00:43
    关注

    It sounds like it's a memory issue. The options aren't great if you're not familiar with command line, but they work. Try upgrading PHP. Increase memory PHP is allowed to use in php.ini. Try committing your composer.lock file to your repo, pulling it to the EC2 instance, and then running composer install.

    Hope this helps!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测