cancel
Showing results for 
Search instead for 
Did you mean: 

Help!! how to increase PHP memory limit

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Help!! how to increase PHP memory limit

Hi there.

I have installed Magento 2.3 on remote server, went to install extension and got error message saying i need to increase php memory limit- how do i do this?

kind regrads

2 REPLIES 2

Re: Help!! how to increase PHP memory limit

Hi @luke_mersh,

Add the following line in index.php of the root folder.

ini_set("memory_limit","-1");


OR


You try once using inline memory with commands:

 

php -d memory_limit=-1 bin/magento

I hope it will help you!

Re: Help!! how to increase PHP memory limit

Hello @luke_mersh 

 

You can increase it via .htaccess. please add below code in your .htaccess file

php_value memory_limit 1024M

 

Problem solved?? please Accept as Solution & give Kudos

 

Thank you

Anant P

Thank you
Anant Prajapati
Magento Certified Developer