0 like 0 dislike
19 views
asked in PHP by (4.7k points)

PHP Fatal error: Out of memory (allocated) (tried to allocate 4096 bytes) in /sites/site.loc/www/script.php on line, referer...

PHP error out of memory, allocated...
Out of memory (allocated) (tried to allocate bytes)...

How to decide PHP out of memory error?

Your answer

pre, code

Preview

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

0 like 0 dislike
answered by (4.7k points)

You need increase value memory_limit in php.ini file:

; Resource Limits
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M ; Maximum amount of memory a script may consume (8MB)

Related questions

0 like 0 dislike
1 answer 26 views
0 like 0 dislike
1 answer 22 views
0 like 0 dislike
1 answer 16 views
asked Oct 10, 2018 in PHP by Pantycle_Genefanty (4.7k points)
0 like 0 dislike
1 answer 12 views
0 like 0 dislike
1 answer 26 views
0 like 0 dislike
1 answer 5 views
0 like 0 dislike
1 answer 8 views
0 like 0 dislike
1 answer 12 views
0 like 0 dislike
1 answer 13 views
0 like 0 dislike
1 answer 42 views
...