you can increase the default memory limit to run your PHP application. You can increase it from .htaccess file and also from php.ini file. How to change from .htaccess file?
.htaccess is a hidden file (dot file) of Linux. You will find it inside every domain’s public_html folder. You can create it if you do not find it any how. You just need to enter below line of code in this file:
php_value memory_limit 256MBHow to change it from php.ini file?
Php.ini is a default configuration file for PHP. In linux environment you will find this file in /usr/local/lib/. You will find “memory_limit” directive inside “Resource Limit” section. Just modify this value to the limit you wish to set and save exising php.ini file. In vi editor Press Esc -> colon (
-> wq to save the file.
You will need to restart your apache server in order to make the changes effective. You can restart it by executing following command through SSH:apachectl -k restart
Simply check phpinfo.php file and make sure the changes are reflected properly.