My php.ini has a memory_limit of 256M. phpinfo() reflects this. But from within PHP, ini_get('memory_limit'); returns 32M. My fatal errors for exceeding memory limit also say that the max is 32M.
Any ideas why phpinfo() is lying to me?
My php.ini has a memory_limit of 256M. phpinfo() reflects this. But from within PHP, ini_get('memory_limit'); returns 32M. My fatal errors for exceeding memory limit also say that the max is 32M.
Any ideas why phpinfo() is lying to me?
have you tried setting the limit with PHP code as a test?
ini_set('memory_limit', '256M');
It's possible to override php.ini parameters in the Apache configuration files.
Depending on the system, their location may vary, but check anything under /etc/apache2, /etc/apache2/conf.d, /etc/apache2/sites-enabled