PHP is a lightweight, fast, and open-source language that’s ideal for generating website elements. Did you know that WordPress has a PHP memory limit of 32MB by default? When this limit is reached, WordPress will automatically increase available memory to 40MB without it needing your intervention. If you hit this limit as well, then you’ll get an error message on the front end page and in your PHP logs. In this step by step guide I will show you how to increase your WordPress PHP memory limit.
Please Support My work by Making a Donation.
Install Text Editor on Your Synology NAS. If you already have Text Editor installed on your Synology NAS, skip this STEP.
Go to File Station / web then locate your WordPress folder. Search for the wp-config.php file then open it.
Copy / paste the code below in the wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’ Follow the instructions in the image below.
define( 'WP_MEMORY_LIMIT', '256M' );
Save the wp-config.php file, then wait 2 or 3 minutes before the settings are automatically applied.
Note: The PHP Memory limit in WebStation is different from the WordPress PHP memory limit. You need to follow the steps in this guide to increase your WordPress PHP memory limit.
This post was updated on Sunday / September 25th, 2022 at 4:38 PM