Symfony\\Component\\Debug\\Exception\\FatalErrorException: Allowed memory size of 734003200 bytes exhausted (tried to allocate 67108872 bytes) in /var/www/html/ProjectName/vendor/laravel/framework/src/Illuminate/Database/Connection.php:347
I am getting above error. I've tried increasing the max_memory
in php.ini
.
But still getting the error.
First Edit your max_memory in php.ini than restart your apache2 with this command
service apache2 restart
Hope this will work fine
the server was on EC2 instance. first i tried to increase the limit in php.ini file. My EC2 instace was t2.micro with just 1 GB of ram. I resized the EC2 instance to t2.small . also increased memory limit in php.ini. This solved the issue.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.