Answer the question
In order to leave comments, you need to log in
Problems with memory size when executing a file in the console. How to eliminate?
Good afternoon.
When executing a php file in the console, it constantly gives the following error:
Allowed memory size of 262144 bytes exhausted (tried to allocate 49152 bytes) in /var/www/test/update_price.php on line 80
Answer the question
In order to leave comments, you need to log in
Apache and CLI use different php.ini files, most likely you did not increase memory_limit there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question