Laravel 5.3 blank white screen no errors

你说的曾经没有我的故事 提交于 2019-12-24 09:16:10

问题


I have gone through so many forums trying to find a solution to fix this error but non seems to be working.

Error in site-error.log

Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /path/site/vendor/laravel/framework/src/Illuminate/Foundatio‌​n/helpers.php on line 475

I have assigned

sudo chown -R www-data:www-data /path/directory 

results for ls -al

drwxrwxrwx 12 www-data www-data    4096 Oct 25 10:06 .
drwxrwxrwx  6 www-data www-data    4096 Oct 25 06:46 ..
drwxr-xr-x  6 www-data www-data    4096 Oct 25 10:04 app
-rw-r--r--  1 www-data www-data    1646 Oct 25 10:04 artisan
drwxr-xr-x  3 www-data www-data    4096 Oct 25 10:04 bootstrap
-rw-r--r--  1 www-data www-data    1412 Oct 25 10:04 composer.json
-rw-r--r--  1 www-data www-data  134388 Oct 25 10:04 composer.lock
-rw-r--r--  1 www-data www-data 1723068 Oct 25 10:04 composer.phar
drwxr-xr-x  2 www-data www-data    4096 Oct 25 10:04 config
drwxr-xr-x  5 www-data www-data    4096 Oct 25 10:04 database
-rw-r--r--  1 www-data www-data     615 Oct 25 09:46 .env
-rw-r--r--  1 www-data www-data     491 Oct 25 10:04 .env.example
-rw-r--r--  1 www-data www-data      61 Oct 25 10:04 .gitattributes
-rw-r--r--  1 www-data www-data      96 Oct 25 10:04 .gitignore
-rw-r--r--  1 www-data www-data     558 Oct 25 10:04 gulpfile.js
-rw-r--r--  1 www-data www-data     135 Oct 25 07:17 .htaccess
-rw-r--r--  1 www-data www-data  401057 Oct 25 10:04 _ide_helper.php
-rw-r--r--  1 www-data www-data     401 Oct 25 10:04 package.json
-rw-r--r--  1 www-data www-data     930 Oct 25 10:04 phpunit.xml
drwxr-xr-x  5 www-data www-data    4096 Oct 25 10:04 public
-rw-r--r--  1 www-data www-data     749 Oct 25 10:04 readme.md
drwxr-xr-x  5 www-data www-data    4096 Oct 25 10:04 resources
drwxr-xr-x  2 www-data www-data    4096 Oct 25 10:04 routes
-rw-r--r--  1 www-data www-data     563 Oct 25 10:04 server.php 
drwxrwxrwx  5 www-data www-data    4096 Oct 25 10:04 storage
drwxr-xr-x  2 www-data www-data    4096 Oct 25 10:04 tests
drwxr-xr-x 34 www-data www-data    4096 Oct 25 10:06 vendor

I also applied

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache

but am still getting the black white screen. where am i going wrong


回答1:


For anyone else who might be facing the same issue, after upgrading to php7 you have to disable Apache2's PHP5 module and enable PHP7, like so:

a2dismod php5
a2enmod php7.0
sudo service apache2 restart


来源:https://stackoverflow.com/questions/40234890/laravel-5-3-blank-white-screen-no-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!