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? May 9, 2017 at 12:30
  • Hi. Thank you for your response. Sure I restarted the server May 9, 2017 at 12:49
  • Which version of PHP and Magento are you using May 10, 2017 at 6:58
  • Magento ver. 2.1.6 PHP Version 7.0.18-1+deb.sury.org~trusty+1 May 10, 2017 at 7:28

2 Answers 2


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." May 10, 2017 at 6:44

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 and acknowledge you have read our privacy policy.

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