Wednesday, July 20, 2016

Increase Memory Limit and File Upload size in Wamp

Find php.ini inside your WAMP installation

In my case, I was able to find it inside: C:/wamp64/bin/php/php7.0.0/php.ini

Find:

post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M


Change to:
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M


Then restart wamp for the changes to effect.

For Drupal:

Add:
ini_set('memory_limit', '-1');
in the index.php file in your site's root directory.

No comments:

Post a Comment