Please refer to the following steps to increase the PHP memory_limit.

Step 1: Log in to your cPanel. Please refer to how to open cPanel.

Step 2: Click on the file manager and find the .htaccess file for your website. If you don't have an existing .htaccess file, then you can create a new .htaccess file. Please refer to how to create a file in cPanel.

Step 3: Open the .htaccess file and add the line below. You can change the PHP memory_limit as per your requirement.

<IfModule mod_php7.1> 
 php_value memory_limit 64M 
</IfModule>

Step 4: Create a PHP info file. Please refer to how to create a phpinfo file for more details.

Step 5: Access the phpinfo page in the browser and verify the memory_limit that you have set.

Was this answer helpful? 1 Users Found This Useful (1 Votes)