You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i'm using the latest image (with nextcloud 14)
and when i run any php occ command. i get this message The current PHP memory limit is below the recommended value of 512MB.
i haven't touch the image. it's the official image from docker hub vanilla (with clean installation to mariadb)
Reacted by Knapoc, Louis Matthijssen, Gregory Seibert, Attila Fulop, jonaguiper, Chris and Florian Grignon
@bitdegree67
You can change it with echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
inside the docker container
but i think its temporary and hacky
Reacted by Bogdan Lashkov, Aib, YLaido, Piotr Suchanek, Evgeniy Bondarenko, Alexander Konotop, Gheric, Duncan Lukkenaer, Oleksandr, aymen inoubli and 13 more
Reacted by Aib
Reacted by Aib, István Turupoli, Zied Ellouze, Paul McCrodden, Braulio Soncco, Loïc PIREZ and sergheii
Thanks for providing the details. I can now reproduce the issue. @tilosp since this has been added in nextcloud/server#10539 (NC 14), should we change the defaults for the container?
@bitdegree67 It is apparently still an issue with the php-fpm variant. My current solution is to have my own derived Dockerfile which simply increases the mem limit, but I think this should really be included in upstream (php-fpm and the alpine alt).
Edit: I've just realized that the memory-limit configuration is also present in .user.ini, but somehow nextcloud was still complaining.
One is in the setting page, served through Apache or PHP-FPM and using .htaccess or .user.ini
Another one is in the occ cli util (since NextCloud 14), which uses PHP defaults
You can always mount a custom my-config.ini file, that contains e.g. memory_limit = 512M, into /usr/local/etc/php/conf.d/.
I've created #460 to ship this setting by default.
Activity
bitdegree67 commentedon Sep 8, 2018
It's a good idea to PR this ?
RUN echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
in Dockerfile of NC14 ?
J0WI commentedon Sep 9, 2018
This is already set in
.htaccessand.user.ini. Have you modified them?You can also mount a custom config into
/usr/local/etc/php.xXZaretXx commentedon Sep 10, 2018
Hello,
i have the same problem ,
the php limit is to 128 (php -i | grep memory_limit)
the values in .htacess and user.ini are set to 512
bitdegree67 commentedon Sep 10, 2018
@J0WI No, as i said. i've just run
docker run nextcloud
and then in this new nextcloud run "php occ" then i get the message of warning 128MB
xXZaretXx commentedon Sep 10, 2018
@bitdegree67
You can change it with
echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;inside the docker container
but i think its temporary and hacky
bitdegree67 commentedon Sep 10, 2018
@xXZaretXx I myself proposed this solution
xXZaretXx commentedon Sep 10, 2018
@bitdegree67 ups yes you are right , i'm blind
trytrytogo commentedon Sep 10, 2018
Hello,
i have the same problem ,someone who can slove it. thanks.
J0WI commentedon Sep 10, 2018
Thanks for providing the details. I can now reproduce the issue.
@tilosp since this has been added in nextcloud/server#10539 (NC 14), should we change the defaults for the container?
bitdegree67 commentedon Sep 11, 2018
The question is why .htaccess isn't used by "php occ"
J0WI commentedon Sep 11, 2018
Because it's the cli and not apache
bitdegree67 commentedon Sep 11, 2018
Alright! so it's dsn't a problem for nextcloud, only for occ
cynecx commentedon Sep 12, 2018
@bitdegree67 It is apparently still an issue with the php-fpm variant. My current solution is to have my own derived Dockerfile which simply increases the mem limit, but I think this should really be included in upstream (php-fpm and the alpine alt).
Edit: I've just realized that the memory-limit configuration is also present in
.user.ini, but somehow nextcloud was still complaining.Add custom memory limit for PHP CLI (fix nextcloud#447)
Add custom memory limit for PHP CLI (fix nextcloud#447)
J0WI commentedon Sep 12, 2018
There are two different checks in NextCloud:
.htaccessor.user.iniocccli util (since NextCloud 14), which uses PHP defaultsYou can always mount a custom
my-config.inifile, that contains e.g.memory_limit = 512M, into/usr/local/etc/php/conf.d/.I've created #460 to ship this setting by default.
Merge pull request #460 from J0WI/mem-limit
Create docker-php-memlimit.ini
Create docker-php-memlimit.ini
aibmakesense commentedon Mar 9, 2019
Thank you