When Laravel 5 Fails With The White Screen Of Death (aka WSOD) This Script Will Make It Right
Add this script to your root Laravel directory and run the following command:
php laravel-fix.php
Note. This script is for the www-data:www-data user (the standard Apache user:group). If your user:group is defferent you may want to change it
- Removes the vendor directory
- Composer updates all packages and creates the vendor directory
- Changes the overall ownership to the web user www-date
- Fixes access for storage directory
- Fixes access for boot directory
- Fixes access for public directory