.htaccess increase memory | All In One Migration

Posted on: June 27th, 2022
By: Tadeo Martinez

Add this following snippet to the .htaccess file to increase the memory. The one you need to change is the 512M to your desired memory limit.

I’ve noticed that this only works during local development but when you host on a live server, most hosting providers disallow this.

php_value upload_max_filesize 2048M
php_value post_max_size 2048M
php_value memory_limit 512M
php_value max_execution_time 300
php_value max_input_time 300

Have any questions or comments? Write them below!

Leave a Reply

Your email address will not be published. Required fields are marked *