[GH-ISSUE #512] Can't login anymore, php memory exhausted #360

Closed
opened 2026-02-26 02:32:57 +03:00 by kerem · 4 comments
Owner

Originally created by @jkronen on GitHub (Jan 4, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/512

Hey, I just installed koel v3.4.1 on debian 8, loaded it with a few songs and it worked fine.

But after adding my whole library with over 24k songs, I now can't login anymore (doesn't matter it I access via nginx or directly with local IP).

The nginx error log just shows this error:

2017/01/04 21:04:24 [error] 14402#0: *572 FastCGI sent in stderr: "PHP message: PHP Fatal error:  
Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in 
/var/www/koel/vendor/laravel/framework/src/Illuminate/Support/Str.php on line 89" while reading response header from upstream, 
client: MY-IP, server: music.*, request: "GET /api/data HTTP/1.1", upstream: 
"fastcgi://unix:/var/run/php5-fpm.sock:", host: "music.mydomain.de", referrer: "https://music.mydomain.de/"

I read in another Issue about increasing the php memory limit, but I don't know in which file to set the ini_set('memory_limit', '64M');.

Thank you in advance,
Jan

Originally created by @jkronen on GitHub (Jan 4, 2017). Original GitHub issue: https://github.com/koel/koel/issues/512 Hey, I just installed koel v3.4.1 on debian 8, loaded it with a few songs and it worked fine. But after adding my whole library with over 24k songs, I now can't login anymore (doesn't matter it I access via nginx or directly with local IP). The nginx error log just shows this error: ``` 2017/01/04 21:04:24 [error] 14402#0: *572 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Support/Str.php on line 89" while reading response header from upstream, client: MY-IP, server: music.*, request: "GET /api/data HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "music.mydomain.de", referrer: "https://music.mydomain.de/" ``` I read in another Issue about increasing the php memory limit, but I don't know in which file to set the `ini_set('memory_limit', '64M');`. Thank you in advance, Jan
kerem 2026-02-26 02:32:57 +03:00
Author
Owner

@BernardGoldberger commented on GitHub (Jan 5, 2017):

The filename is php.ini and should be located in the php bin folder.

<!-- gh-comment-id:270528765 --> @BernardGoldberger commented on GitHub (Jan 5, 2017): The filename is php.ini and should be located in the php bin folder.
Author
Owner

@jkronen commented on GitHub (Jan 5, 2017):

The php.ini srts the global memory limit. Isn't it possible to set the limit only for this application?

<!-- gh-comment-id:270587961 --> @jkronen commented on GitHub (Jan 5, 2017): The php.ini srts the global memory limit. Isn't it possible to set the limit only for this application?
Author
Owner

@phanan commented on GitHub (Jan 5, 2017):

You can try adding the line ini_set('memory_limit', '64M'); on top of the root index.php file. However, this doesn't guarantee to be working – it depends on your PHP installation. Maybe I'll introduce this as a setting in the next release.

<!-- gh-comment-id:270606459 --> @phanan commented on GitHub (Jan 5, 2017): You can try adding the line `ini_set('memory_limit', '64M');` on top of the root `index.php` file. However, this doesn't guarantee to be working – it depends on your PHP installation. Maybe I'll introduce this as a setting in the next release.
Author
Owner

@jkronen commented on GitHub (Jan 5, 2017):

I had to set it to 256M, but then it works. Thank you!

<!-- gh-comment-id:270711926 --> @jkronen commented on GitHub (Jan 5, 2017): I had to set it to 256M, but then it works. Thank you!
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#360
No description provided.