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 17
PHP 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
1
chenset 2016-03-30 14:44:13 +08:00
composer install
composer update composer dump-autoload 执行后再看看 |
2
aaronly 2016-03-30 14:49:31 +08:00
php artisan clear-compiled
php artisan optmize |
3
sobigfish 2016-03-30 14:52:21 +08:00 via iPhone
呃,这么基础的东西 可以先 bing Google 么 谢谢 怪不得社区里面歧视 PHP 群体
看到 vendor/autoload.php 不可能搜不出 composer 相关消息 |
4
chuhemiao OP |
5
orvice 2016-03-30 22:01:15 +08:00 1
试试看国内镜像
http://pkg.phpcomposer.com/ |
7
ppto 2016-03-31 09:10:00 +08:00
php 内核代码在线查看工具, www.phpsourcechm.com @
|