WordPress

How to increase the PHP memory limit in WordPress

If you see “Allowed memory size exhausted” or a blank page after installing a plugin, WordPress may need more memory. There are two easy ways to raise the limit.

1. Edit wp-config.php. In the DirhamHost File Manager, open wp-config.php and, just above the line that says “That’s all, stop editing”, add:

define('WP_MEMORY_LIMIT','256M');

For memory-heavy admin tasks you can also add define('WP_MAX_MEMORY_LIMIT','512M');.

2. Set PHP limits in the panel. In DirhamHost, open the PHP settings (MultiPHP INI Editor or Select PHP Version → Options) and raise memory_limit to 256M.

Save and reload your site. Check the new value under Tools → Site Health → Info → Server. If you still hit limits, a plugin may be inefficient — deactivate them one at a time to find the heavy one.

Our plans allow generous PHP limits; if you need more headroom, contact us on WhatsApp +971 58 553 6767 or support@dirhamaday.ae.

Still need a hand? Our UAE-based team is here 24/7.

Related articles

How to install WordPress with 1-clickHow to log in to your WordPress dashboard (wp-admin)How to choose and install a WordPress themeEssential plugins for a new WordPress siteHow to update WordPress, themes and plugins safely