joshkraemer
06-25-2009, 01:07 PM
I think this is a question for HM, but I will ask it here first and see if anyone is aware of this problem.
I have a php script that backs up all the MySQL databases in my account and emails them to me in a .tar file.
Recently, the size of the databases have required me to raise the php memory limit in my php.ini.
All works well, except when I try to run the same script (from the same file path) via cron instead of a web browser, I get the php fatal error: "Allowed memory size of 33554432 bytes exhausted." This indicates that HM's default php.ini settings are overriding the php.ini settings for my account (set to one php.ini file for all sub directories).
My cron command looks like this: /ramdisk/bin/php5 -q /home/username/public_html/maintenance/mysql/backup/backup_dbs.php
If I change /ramdisk/bin/php5 to php, the server will automatically change it back to /ramdisk/bin/php5 on the next script run.
Any thoughts or suggestions? Thanks!
I have a php script that backs up all the MySQL databases in my account and emails them to me in a .tar file.
Recently, the size of the databases have required me to raise the php memory limit in my php.ini.
All works well, except when I try to run the same script (from the same file path) via cron instead of a web browser, I get the php fatal error: "Allowed memory size of 33554432 bytes exhausted." This indicates that HM's default php.ini settings are overriding the php.ini settings for my account (set to one php.ini file for all sub directories).
My cron command looks like this: /ramdisk/bin/php5 -q /home/username/public_html/maintenance/mysql/backup/backup_dbs.php
If I change /ramdisk/bin/php5 to php, the server will automatically change it back to /ramdisk/bin/php5 on the next script run.
Any thoughts or suggestions? Thanks!