To change the memory_limit for PHP, please follow these steps:
β
- Log into cPanel.
- Find and click 'Select PHP Version'.
- Then click 'Options' tab there will be a list of options you can modify.
- You can adjust your PHP memory Limit.
- Once you selected the Memory Value, click the Apply button.
- Lastly, hit the Save button.
If you are using Wordpress, you may need to also edit the wp-config.php file to apply these changes:
Log into cPanel and get into the File Manager.
Find the file wp-config.php file, usually located at the public_html folder.
Right click on top of the wp-config.php and select Edit.
Find the line
/* That's all, stop editing! Happy publishing. */
Right above the line in the previous step, add this code:
define('WP_MEMORY_LIMIT', '256M');
Select Save Changes and then Close.
β
β