接口' Symfony \ Component \ HttpKernel \ HttpKernelInterface'在laravel中找不到

时间:2017-10-03 11:28:47

标签: laravel laravel-5.4

我在服务器上载了laravel项目,

http://myWebsite.com上传后显示HTTP ERROR 500

我运行此代码:

sudo chmod 755 -R laravel
chmod -R o+w laravel/storage

在根项目中添加.htaccess

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

我运行此代码:

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

如何发出此问题?

1 个答案:

答案 0 :(得分:0)

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