-2

I have one project with angular and laravel. It is working in loclahost. I want to deploy it in server. So in my /var/www/html/ I kept my angular files. And in /var/www/html/api I want to keep the laravel files. But laravel is not installing. It's showing the below errors. I increased /etc/php.ini memory limit also. I copied existing laravel file. It's only showing directories rather running the app. From the laravel public folder also it's not running. Sorry for my poor english. Thanks in advance.

mmap() failed: [12] Cannot allocate memory

PHP Fatal error:  Out of memory (allocated 725622784) (tried to allocate 33554440 bytes) in phar:///var/www/html/api/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 84

Fatal error: Out of memory (allocated 725622784) (tried to allocate 33554440 bytes) in phar:///var/www/html/api/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 84

2 Answers2

-1

This doesn't matter on the App Level or your Laravel you need to allocate your PHP with higher memory limit.

Kenneth Sunday
  • 865
  • 7
  • 14
-2

What type of instance of you using? Have you tried with a largest type (e.g. t3.medium instead of t3.micro)?

jbleduigou
  • 139
  • 7