Fatal error: Allowed memory size of 67108864 bytes exhausted (attempted to allocate 13965430 bytes)
PHPInfo shows that my memory limit is 128M, so I'm confused why the error says I only have 64M. Is it possible that phpinfo reports an error? Or does PHP use two separate php.ini?
The error was caused by an ini_set call in one of the main php files that one of my colleagues added without my knowledge.
or
or
PHP configuration can be set in multiple places:
php.ini
(usually somewhere in /etc)php_value
)php.ini
(use the commandphp -i | grep memory_limit
to check the CLI configuration)php_value
)ini_set()
)In the output of PHPinfo, the "Master" value is the compiled default value, and the "Local" value is the actual effective value. It can be left unchanged from the default value or overridden in any of the above locations.
Also note that PHP typically has different .ini files for command line and web server-based operations. Checking
phpinfo()
from the command line will report different values than running it in a web-based script.