Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel 接口';Symfony\Component\HttpKernel\HttpKernelInterface';在拉拉维尔没有发现_Laravel_Laravel 5.4 - Fatal编程技术网

Laravel 接口';Symfony\Component\HttpKernel\HttpKernelInterface';在拉拉维尔没有发现

Laravel 接口';Symfony\Component\HttpKernel\HttpKernelInterface';在拉拉维尔没有发现,laravel,laravel-5.4,Laravel,Laravel 5.4,我将laravel项目上传到服务器 上传后,在中显示HTTP错误500 我运行以下代码: sudo chmod 755 -R laravel chmod -R o+w laravel/storage php artisan cache:clear, php artisan composer dump-autoload 并在根项目中添加.htaccess: RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRu

我将laravel项目上传到服务器

上传后,在中显示HTTP错误500

我运行以下代码:

sudo chmod 755 -R laravel
chmod -R o+w laravel/storage
php artisan cache:clear,
php artisan composer dump-autoload
并在根项目中添加
.htaccess

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
我运行以下代码:

sudo chmod 755 -R laravel
chmod -R o+w laravel/storage
php artisan cache:clear,
php artisan composer dump-autoload
显示此错误:

PHP Fatal error:  Interface 'Symfony\Component\HttpKernel\HttpKernelInterface' not found in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 25

如何解决此问题?

在bootstrap.php文件中,检查是否需要
\uuuu DIR\uuuu./../autoload.php'

在不使用artisan框架的情况下尝试“composer dump autoload-o”。如果这不起作用,请尝试composer update--no scripts',这也将绕过composer.json文件中的laravel命令。有同样的问题<代码>更新--没有脚本和
编写器更新--没有脚本
没有帮助。您是否尝试过更新编写器并重新初始化您的终端<代码>php composer.phar自我更新