0

I installed Magento 2 on C9.

I installed PHP 7, with all necessary extensions (curl, mbstring, mcrypt and etc).

I set the php memory_limit 4096M. https://nimbus.everhelper.me/client/notes/share/905628/sxvelb6o5xrt3q0tilem

But when I try to enable any extension I receive this error. https://nimbus.everhelper.me/client/notes/share/905618/itnd4qy7g7caitzgrrmv

  • Did you restart the web server after changing PHP memory limit? – Khoa TruongDinh May 9 '17 at 12:30
  • Hi. Thank you for your response. Sure I restarted the server – Vahan Petrosyan May 9 '17 at 12:49
  • Which version of PHP and Magento are you using – Paras Arora May 10 '17 at 6:58
  • Magento ver. 2.1.6 PHP Version 7.0.18-1+deb.sury.org~trusty+1 – Vahan Petrosyan May 10 '17 at 7:28
0

Increase the PHP memory limit to at least 768MB for normal operation or 2GB for testing.

I found in the documentation:

Set the PHP memory limit.
Our detailed recommendations are: 
Compiling code or deploying static assets, 756M 
Installing and updating Magento components from Magento Marketplace, 2G Testing
  • I tested it before and unfortunately nothing worked. I increased memory limit to 1G, 2G and 4G, but I always get this error. "Your current PHP memory limit is 64M. Magento 2 requires it to be set to 756M or more." – Vahan Petrosyan May 10 '17 at 6:44
0

I think you have to add -d memory_limit=6G with the command.

Php -dmemory_limit=6G bin/magrnto setup:static-content:deploy

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.