How to increase your PHP memory limit
To increase your PHP Memory Limit (memory_limit) in your php.ini file. If you dont know where is your php.ini file, you can look at this post
Then look for the word memory_limit, default memory limit is 64 MB. Now you can increase it to either 128 MB or bigger number like 512 MB.
memory_limit = 128M ;
You can also use :
in your PHP script for example in index.php to increase the memory limit.