All your question about php
- Posts: 177
- Joined: Thu Mar 04, 2010 9:19 pm
I run a script in CLI php,
And I get the following error :
Code: Select all
Fatal error: Allowed memory size of x bytes exhausted (tried to allocate x bytes)
What can I do to solve it ?
- Site Admin
- Posts: 180
- Joined: Mon Jul 21, 2008 9:52 am
In the php.ini file (/etc/php/cli-php7.0/php.ini
you can set the Allowed memory :
You can increase it to 512M or even more.
But you might want to check why your script uses that much memory.