[GH-ISSUE #121] Login returns 500 #86

Closed
opened 2026-02-26 02:32:05 +03:00 by kerem · 1 comment
Owner

Originally created by @sterling on GitHub (Dec 19, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/121

I am unable to login with Koel running on Apache. I am, however, able to login when using php artisan serve. After submitting the login form, I always get a 500 http status code. This happens when using both correct and incorrect login credentials.

I have been unable to diagnose this issue because I can't find any error logs. No apache error logs are produced and I don't see any PHP error logs. I've set APP_DEBUG=true in .env, but I still don't get any extra information.

Where can I find additional logs on what is going on?

Originally created by @sterling on GitHub (Dec 19, 2015). Original GitHub issue: https://github.com/koel/koel/issues/121 I am unable to login with Koel running on Apache. I am, however, able to login when using `php artisan serve`. After submitting the login form, I always get a 500 http status code. This happens when using both correct and incorrect login credentials. I have been unable to diagnose this issue because I can't find any error logs. No apache error logs are produced and I don't see any PHP error logs. I've set `APP_DEBUG=true` in `.env`, but I still don't get any extra information. Where can I find additional logs on what is going on?
kerem closed this issue 2026-02-26 02:32:05 +03:00
Author
Owner

@sterling commented on GitHub (Dec 19, 2015):

Sorry, I had my php configured incorrectly so I was not getting its logs. After resolving that issue, the errors I was getting were:

PHP Fatal error:  Uncaught UnexpectedValueException: The stream or file "/var/www/koel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in...

For anyone that runs into this same issue, this was resolved by making sure the storage directory had appropriate permissions for apache to write to it.

<!-- gh-comment-id:166029624 --> @sterling commented on GitHub (Dec 19, 2015): Sorry, I had my php configured incorrectly so I was not getting its logs. After resolving that issue, the errors I was getting were: ``` PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/koel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in... ``` For anyone that runs into this same issue, this was resolved by making sure the storage directory had appropriate permissions for apache to write to it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#86
No description provided.