-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Fatal error: Allowed memory size of x bytes exhausted #224
Comments
I've checked all config files for a reference to the 128M memory, but I cannot locate it.
However the only references to 'memory' are set in opcache-recommended and .user.ini, and I've set them both to 512M without avail. |
I managed to fix the memory limit by manually creating It seems that the memory directives in opcache-recommended.ini and .user.ini have an effect on the local value according to phpinfo, but does not edit the master value. Is this a bug? |
Duplicate of #182 |
I fixed this problem by
|
Another method, that I found a bit more reliable (because it takes precedent over other
|
the documentation mentions using |
I modified the docker container Running |
Also you can use the docker ENV var MEMORY_LIMIT
|
you can also set memory_limit in etc/php-fpm.d/ |
When trying to generate image previews using the
occ preview:generate-all
command, The following error is thrown:PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) in /var/www/html/lib/private/legacy/image.php on line 477
According to phpinfo() the memory_limit is set to 128M. Can this be increased? I could not find a php.ini file to change this variable. Changing it to 2048M in .htacces and .user.ini did not resolve the issue.
I am running the standard docker image (not using docker-compose).
The text was updated successfully, but these errors were encountered: