PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 45023808 bytes) in /var/www/html/admin/helpers/Email.php on line 1157
I am getting this error on a fresh FreePBX 2.10 Distro install when trying to run a backup that sends the results to email.
I suggest that you should find another way of delivery, the chances of sending a 300Mb gzip file through email (mime) is less than “very likley” and many mailservers will reject such large messages anyway.
you can add/change from the defaults of
mailbox_size_limit = 51200000
message_size_limit = 10240000
then reload postfix if you want to risk not being able to restore the backup.
. . .and increase the memory_limit in /etc/php.ini to cover your backup file plus the overhead of encoding it (about 30% )