On my Drupal 6 website, when I run cron manually the following error message shows up:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4181580 bytes) in /dirname/includes/database.mysql-common.inc on line 34
Cron is set to run every night automatically, but for a few days it was not running, so I tried it manually.
For Drupal, where should I increase memory? Should it be in settings.php, php.ini for php, or somewhere else? I'm using AWS RDS & EC2 instances.
I have this in the settings.php file:
ini_set('memory_limit', '128M');
Some help would be much appreciated.