SELinux
# tail -f /var/log/php-fpm/www-error.log
PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/yourproject/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/yourproject/bootstrap/cache/compiled.php:14181Stack trace
The website working good when I use php artisan serv --port=80 --host=0.0.0.0, but apache get 500 when I try to login. No matter how I change owner or mod, I cannot make it work.
Then I try to shutdown SELinux. It's works!
So, if you have same problem like me, just do like that:
# chcon -R -t httpd_sys_rw_content_t storage/
And your session gonna able to storage, you can make auth now.
When you try to connect your database, you see this error:
An exception occured in driver: SQLSTATE[HY000] [2002] Permission denied
Run this command
setsebool httpd_can_network_connect_db on