Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Batch's avatar
Level 1

Wrong Credentials Brings 500 Server Error Page

My laravel version is 6.3.0.

I generated login forms with commands below:

composer require laravel/ui php artisan ui:auth

It works good at my local but at production when I enter wrong credentials to login form it shows "500 Server Error" page instead of redirecting to login page again.

How can I fix this?

0 likes
3 replies
skauk's avatar

@batch First of all, you need to figure out what causing the error. There could be many reasons for this. Check your logs.

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Check storage/logs/laravel.log

1 like
Batch's avatar
Level 1

I checked log files. It was a permission error with /storage/framework/cache/data/ directory.

I am not sure if it is a good practice but I executed command below and it worked.

chmod -R 777 /var/www/html/application_name/storage/framework/cache

Thanks for help.

Please or to participate in this conversation.