I have a Memory Limit error. What should i do? Print

  • 116

 

if you are executing in shell, you can set the memory limit for your php by adding the parameter "-d"

$ php -d "memory_limit=128M"

Or you can add ini_set('memory_limit', '128M'); in the symfony command file for all your symfony tasks.

For your web apps it's best to set it in a .htaccess file.

php_value memory_limit 128M

This increases the memory limit of the php process to 128Mb.


Was this answer helpful?

« Back