Troubleshooting

How do I fix a PHP memory exhausted error?

A message like "Allowed memory size of X bytes exhausted" means a script tried to use more memory than the PHP limit allows. It often appears as a blank page or a 500 error, especially on media-heavy WordPress sites or during imports.

Raise the PHP memory limit:

  1. In the DirhamHost panel at my.dirhamaday.ae, open the MultiPHP INI Editor, select your domain, and increase memory_limit (for example to 256M).
  2. WordPress: you can also add define('WP_MEMORY_LIMIT', '256M'); to wp-config.php.

But also find why it ran out, since simply raising the limit forever can hide a real problem:

If your site legitimately needs more memory than your plan provides, or usage stays high, contact our 24/7 UAE team on WhatsApp +971 58 553 6767 or support@dirhamaday.ae. We can review resource usage (DirhamGuard) and advise whether a plan upgrade is the right move.

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

Related articles

My website is down, what do I do?How do I fix a 500 Internal Server Error?What causes 502 and 504 gateway errors?How do I fix a 403 Forbidden error?Why am I getting a 404 Not Found error?