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:
- In the DirhamHost panel at my.dirhamaday.ae, open the MultiPHP INI Editor, select your domain, and increase
memory_limit(for example to256M). - WordPress: you can also add
define('WP_MEMORY_LIMIT', '256M');towp-config.php.
But also find why it ran out, since simply raising the limit forever can hide a real problem:
- A poorly coded or heavy plugin consuming memory; deactivate plugins one by one to find it.
- A large import, backup or image operation; do these in smaller batches.
- An outdated PHP version; a current version is more efficient.
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.