Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 366 Vote(s) - 3.55 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Laravel blank white screen

#1
My Laravel site was working before, I recently upgraded to Apache 2.4 and PHP 5.5.7.

Now I'm getting a white blank screen when I go to `laravel.mydomain.example`, nothing in Apache error logs, routes and etc. should be fine as it worked before.

`.htaccess` is loading as I get a 500 when I insert an invalid line to `/var/sites/laravel/public/.htaccess`.

Heres my `.htaccess`:

$ cat /var/sites/laravel/public/.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

Heres my virtual host directive:

DocumentRoot "/var/sites/laravel/public"
ServerName laravel.mydomain.example
<Directory "/var/sites/laravel/public">
AllowOverride All
allow from all
Options +Indexes
Require all granted
</Directory>

And apachectl -S

$ /usr/local/apache2/bin/apachectl -S
VirtualHost configuration:
*:* is a NameVirtualHost
default server mydomain.example (/usr/local/apache2/conf/extra/httpd-vhosts.conf:25)
port * namevhost mydomain.example (/usr/local/apache2/conf/extra/httpd-vhosts.conf:25)
port * namevhost laravel.mydomain.example (/usr/local/apache2/conf/extra/httpd- vhosts.conf:34)
ServerRoot: "/usr/local/apache2"
Main DocumentRoot: "/var/www"
Main ErrorLog: "/usr/local/apache2/logs/error_log"
Mutex rewrite-map: using_defaults
Mutex default: dir="/usr/local/apache2/logs/" mechanism=default
PidFile: "/usr/local/apache2/logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="daemon" id=1 not_used
Group: name="daemon" id=1 not_used
Reply

#2
Other problem with the same behavior is use Laravel 3 with PHP 5.5.x. You have to change some laravel function's name "yield() because is a reserved word in php 5.5
Reply

#3
I have some issues to setup it in a Vagrant machine. Whats really works for me was execute a:

`chmod -R o+w app/storage/`

from inside the Vagrant machine.

<sub>Reference:

[To see links please register here]

;
Reply

#4
Another thing that may cause the WSOD is missing the 'return' keyword, as in:

`return View::make('yourview');`

as opposed to

`View::make('yourview');`
Reply

#5
An update to fideloper's answer for Laravel 5 and its new file structure is:


$ sudo chmod -R o+w storage/

Reply

#6
In my case, restarting apache fixed the problem.
for Ubuntu / Debian:

sudo service apache2 restart
Reply

#7
Try this, in the public/index.php page

error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
ini_set("display_errors", 1);
Reply

#8
This changes works for my localhost Ubuntu server 14.xx setting

# Apply all permission to the laravel 5.x site folders
$ sudo chmod -R 777 mysite

Also made changes on site-available httpd setting [Apache2 settings ][2]

Add settings:

Options +Indexes +FollowSymLinks +MultiViews
Require all granted


[1]:

[To see links please register here]

%20settings
[2]:

[To see links please register here]

Reply

#9
Sometimes it's because laravel 5.1 require PHP >= 5.5.9. Update php will solve the problem.
Reply

#10
Reason can be `Middleware` if you forget to put following code to the end of `handle` function

return $next($request);
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through