I am using AWS Ec2 LAMP server, after setup php.ini memory limit to 256 getting same error, restarted my httpd but no changes.
checked in cmd - php -i
shows memory_limit = 256M so php.ini is updated then where can i change?
I am using AWS Ec2 LAMP server, after setup php.ini memory limit to 256 getting same error, restarted my httpd but no changes.
checked in cmd - php -i
shows memory_limit = 256M so php.ini is updated then where can i change?
Based on Error message, your script used all allocated memory (256 * 1024 * 1024 Byte) so your PHP settings is fine, Your script tries to use/allocate more than 256 MB, check your running code
Try this trick. Write this simple code in config file.
If you using main server
if($_SERVER['HTTP_HOST'] == 'Your domain name here'){
ini_set('memory_limit', '512M');
}
If you using local server
if($_SERVER['HTTP_HOST'] == 'Your IP address here'){
ini_set('memory_limit', '512M');
}