[GH-ISSUE #1217] Cannot log in when running apache2 #688

Closed
opened 2026-02-26 02:33:58 +03:00 by kerem · 3 comments
Owner

Originally created by @deanlongstaff on GitHub (Apr 18, 2020).
Original GitHub issue: https://github.com/koel/koel/issues/1217

Describe the bug
My Koel directory is owned by www-data, when i try to log in through apache it just shakes with a red box around it. It is the same if i try using laraval running as my debian user, but if i run the laravel server as root then i can sign in and it works.

To reproduce
Steps to reproduce the behavior:

  1. You will need it set up with apache2 and the directory owned by www-data
  2. try to log in and it wont work

Expected behavior
Log in and work as normal

Environment

  • Koel version v4.2.2
  • OS: Ubuntu Server 18.04 LTS
  • Browser Brave
  • PHP version 7.4.4
  • Node version 8.10.0

My Apache conf:

<VirtualHost *:80>
  ServerName koel.secret.com
  DocumentRoot /var/www/koel
</VirtualHost>

P.S - I often have to click "Log In" 3 times to actually sign in, is that just due to me using the Laravel server?

Originally created by @deanlongstaff on GitHub (Apr 18, 2020). Original GitHub issue: https://github.com/koel/koel/issues/1217 **Describe the bug** My Koel directory is owned by www-data, when i try to log in through apache it just shakes with a red box around it. It is the same if i try using laraval running as my debian user, but if i run the laravel server as root then i can sign in and it works. **To reproduce** Steps to reproduce the behavior: 1. You will need it set up with apache2 and the directory owned by www-data 2. try to log in and it wont work **Expected behavior** Log in and work as normal **Environment** - Koel version v4.2.2 - OS: Ubuntu Server 18.04 LTS - Browser Brave - PHP version 7.4.4 - Node version 8.10.0 My Apache conf: ``` <VirtualHost *:80> ServerName koel.secret.com DocumentRoot /var/www/koel </VirtualHost> ``` P.S - I often have to click "Log In" 3 times to actually sign in, is that just due to me using the Laravel server?
kerem closed this issue 2026-02-26 02:33:58 +03:00
Author
Owner

@BrookeDot commented on GitHub (Apr 19, 2020):

This does sound like a permissions problems. What are the permissions of the files in your koel folder? It sounds like they could be owned by root.

It may also help to update Node to v10 or v12.

<!-- gh-comment-id:616208666 --> @BrookeDot commented on GitHub (Apr 19, 2020): This does sound like a permissions problems. What are the permissions of the files in your `koel` folder? It sounds like they could be owned by root. It may also help to update Node to v10 or v12.
Author
Owner

@deanlongstaff commented on GitHub (Apr 20, 2020):

I have updated to Node v12.16.2 which still isnt working, here is my file permissions:

Capture

<!-- gh-comment-id:616541786 --> @deanlongstaff commented on GitHub (Apr 20, 2020): I have updated to Node v12.16.2 which still isnt working, here is my file permissions: ![Capture](https://user-images.githubusercontent.com/56657761/79755131-80181a00-8310-11ea-93b7-79266e08d098.PNG)
Author
Owner

@phanan commented on GitHub (Apr 21, 2020):

This is not a Koel bug, but appears to be how you set up the server's file permissions. For the "multiple clicks to log in" problem, I'm releasing another version to fix it.

<!-- gh-comment-id:617413212 --> @phanan commented on GitHub (Apr 21, 2020): This is not a Koel bug, but appears to be how you set up the server's file permissions. For the "multiple clicks to log in" problem, I'm releasing another version to fix 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#688
No description provided.