Cant play audiobooks
-
@girish said in Cant play audiobooks:
@privsec maybe you can try adjusting php's memory limit which is 128MB by default. You can edit the php.ini using the file manager:
memory_limit = 512M
I'm not very adept at PHP. Is there a pro/con to having higher memory? If not, what would happen if I set it to 1000M?
-
@privsec Usually, a single PHP script shouldn't require so much memory (like 1GB). But it really depends on the app ultimately how much memory it uses. https://github.com/ampache/ampache/wiki/FAQ#im-getting-errors-about-memory-limits-being-reached--out-of-memory seems suggest we have to try to bump it up if it gives some memory errors.
-
Ok, I added the line
I restarted the app
It still giving me that error
-
@privsec as answered in the support ticket, for others.
Ampache overwrites the
memory_limit
value set inphp.ini
so in order to increase the limit, it has to be set in/app/data/config/ampache.cfg.php
In this particular case the mp3 file being an audio book was rather large, above 100Mb so ampache works once the value is set to
memory_limit = 512M
Also given that it is a php app, an app restart is not required, just reload the page in the browser.