将文件上传到服务器laravel5后,白页空白 [英] Blank white page when finished uploading files to server laravel5
问题描述
我已经完成了将文件上传到demo
文件夹中的服务器的操作,但是当我访问时,我得到了空白的白页.当我访问somedomain.com/demo
时,我得到了空白的白页.谁能帮我.我的文件夹目录以demo开头.在demo
文件夹中,我有app
,bootstrap
,config
等文件夹.
当我查看存储/日志文件时,我得到了
I have finished uploading files to server inside demo
folder, but when i visited i got blank white page. when i visited somedomain.com/demo
i got blank white page. Can anyone help me please. My folder directory start with demo. Inside demo
folder i have app
,bootstrap
,config
etc folders.
when i view storage/log file i got
[2015-09-20 06:38:00] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()' in C:\xampp\htdocs\sidinsu\project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ClearCompiledCommand.php:28
Stack trace:
#0 {main}
[2015-09-20 06:52:16] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()' in C:\xampp\htdocs\sidinsu\project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ClearCompiledCommand.php:28
Stack trace:
#0 {main}
[2015-09-20 06:53:23] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()' in C:\xampp\htdocs\sidinsu\project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ClearCompiledCommand.php:28
Stack trace:
#0 {main}
[2015-09-20 06:58:28] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()' in C:\xampp\htdocs\sidinsu\project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ClearCompiledCommand.php:28
Stack trace:
#0 {main}
推荐答案
将Laravel 5移至生产服务器时,请执行以下操作:
When you move Laravel 5 to a production server please do the following:
将存储和引导文件夹的权限更改为0755或0777 chmod -R 0777 storage/
作曲家安装
作曲家更新
工匠缓存:清除
Change permissions of storage and bootstrap folders to 0755 or 0777 chmod -R 0777 storage/
composer install
composer update
artisan cache:clear
这将解决您的依赖关系并使laravel正常运行. 完成上述步骤后,如果遇到程序包冲突,请从app/config/app.php中删除程序包,并从供应商中删除其文件夹,然后运行composer update.
This will resolve your dependencies and make laravel functional. When you get packages conflicts after doing the above steps remove the packages from app/config/app.php and delete their folders from vendor and run composer update.
还要确保您符合Laravel 5的最低要求.需要PHP 5.5.9.
这篇关于将文件上传到服务器laravel5后,白页空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!