V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
chuhemiao
V2EX  ›  PHP

laravel 搭建新站,访问报 500,看了下 nginx 错误,如下

  •  
  •   chuhemiao · 2016-03-30 14:39:47 +08:00 · 10320 次点击
    这是一个创建于 2954 天前的主题,其中的信息可能已经有所发展或是发生改变。

    1.错误如下: 2016/03/30 13:51:18 [error] 19169#0: *193 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/baqiye/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/baqiye/bootstrap/autoload.php on line 17PHP message: PHP Fatal error: require(): Failed opening required '/var/www/baqiye/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/baqiye/bootstrap/autoload.php on line 17" while reading response header from upstream, client: 106.2.166.202, server: baqiye.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.baqiye.com" 2.查看 /var/www/baqiye/bootstrap/../vendor/autoload.php,这里没有 autoload.php 这个文件,是引入错误了吗?还是其它的什么情况 3.用 composer 安装的 laravel 、服务器 centos6.5 , php 环境 5.6.18 , nginx1.8.1

    8 条回复    2016-04-03 23:19:22 +08:00
    chenset
        1
    chenset  
       2016-03-30 14:44:13 +08:00
    composer install
    composer update
    composer dump-autoload

    执行后再看看
    aaronly
        2
    aaronly  
       2016-03-30 14:49:31 +08:00
    php artisan clear-compiled
    php artisan optmize
    sobigfish
        3
    sobigfish  
       2016-03-30 14:52:21 +08:00 via iPhone
    呃,这么基础的东西 可以先 bing Google 么 谢谢 怪不得社区里面歧视 PHP 群体
    看到 vendor/autoload.php 不可能搜不出 composer 相关消息
    chuhemiao
        4
    chuhemiao  
    OP
       2016-03-30 21:58:17 +08:00
    @chenset 执行了,出现这个 https://segmentfault.com/q/1010000004734238
    @aaronly 执行没反应啊
    @sobigfish 好忧伤。。。。
    orvice
        5
    orvice  
       2016-03-30 22:01:15 +08:00   ❤️ 1
    试试看国内镜像
    http://pkg.phpcomposer.com/
    chuhemiao
        6
    chuhemiao  
    OP
       2016-03-30 22:13:49 +08:00
    @orvice 感谢,果然还是用国内的镜像好使,看了大半天了。
    ppto
        7
    ppto  
       2016-03-31 09:10:00 +08:00
    php 内核代码在线查看工具, www.phpsourcechm.com @
    mingyun
        8
    mingyun  
       2016-04-03 23:19:22 +08:00
    @ppto 好高大上
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   998 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:35 · PVG 07:35 · LAX 16:35 · JFK 19:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.