You can set the memory available to PHP using php_value memory_limit
in .htaccess
. However it sounds like you're on shared hosting which isn't powerful enough for what you're trying to do. It's likely that you'll not be able to up the memory limit using .htaccess
too if this is the case.
It's probably time to upgrade your hosting if you're running into issues like this.