Follow these steps to increase WordPress memory limit:
- Log into your cPanel from within your Zalvis client account
- Locate and click the File manager menu in the Files section
- Click Public_html
- Search and select wp-config.php file and right- click Edit
- Add the following code right before the /That’s all, stop editing! Happy blogging. /’ line:
define( ‘WP_MEMORY_LIMIT’, ‘512M’ );
You can enter any value where 512M was stated. 512M is the memory limit you want to set:
You can also change the WP_MEMORY_LIMIT via the wp-includes folder and edit the default-constants.php file.
To confirm whether your changes have got into effect, create a PHP info.php file. To create an info.php file, follow the steps in this guide.
If you enjoyed this article, then you’ll love Zalvis's Cloud Hosting platform. Turbocharge your website and get 24/7 support from our veteran team. Our world-class hosting infrastructure focuses on auto-scaling, performance, and security. Let us show you the Zalvis difference! Check out our services.