asked in PHP by (6.6k points)
0 like 0 dislike
28 views

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

Try to answer the question as detailed as possible.
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 (6.6k 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 41 views
0 like 0 dislike
1 answer 8 views
0 like 0 dislike
1 answer 42 views
0 like 0 dislike
1 answer 33 views
0 like 0 dislike
1 answer 4 views
0 like 0 dislike
1 answer 22 views
0 like 0 dislike
1 answer 46 views
0 like 0 dislike
1 answer 16 views
...