chuhemiao
V2EX  ›  PHP

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

  •  
  •   chuhemiao · Mar 30, 2016 · 11079 views
    This topic created in 3898 days ago, the information mentioned may be changed or developed.

    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 replies  •  2016-04-03 23:19:22 +08:00
    chenset
    chenset
    Mar 30, 2016
    1
    composer install
    composer update
    composer dump-autoload

    执行后再看看
    aaronly
    aaronly
    Mar 30, 2016
    2
    php artisan clear-compiled
    php artisan optmize
    run2
    run2
    Mar 30, 2016 via iPhone
    3
    呃,这么基础的东西 可以先 bing Google 么 谢谢 怪不得社区里面歧视 PHP 群体
    看到 vendor/autoload.php 不可能搜不出 composer 相关消息
    chuhemiao
    chuhemiao
    OP
    Mar 30, 2016
    4
    @chenset 执行了,出现这个 https://segmentfault.com/q/1010000004734238
    @aaronly 执行没反应啊
    @sobigfish 好忧伤。。。。
    orvice
    orvice
    Mar 30, 2016❤️1
    5
    试试看国内镜像
    http://pkg.phpcomposer.com/
    chuhemiao
    chuhemiao
    OP
    Mar 30, 2016
    6
    @orvice 感谢,果然还是用国内的镜像好使,看了大半天了。
    ppto
    ppto
    Mar 31, 2016
    7
    php 内核代码在线查看工具, www.phpsourcechm.com @
    mingyun
    mingyun
    Apr 3, 2016
    8
    @ppto 好高大上
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1350 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 17:10 · PVG 01:10 · LAX 09:10 · JFK 12:10
    ♥ Do have faith in what you're doing.