---
title: "Setting PHP memory_limit with EasyApache 4"
source: "https://docs.nexcess.com/hosting/control-panel/whm/php-management/setting-php-memory_limit-with-easyapache-4/"
description: "When setting the PHP memory_limit in WHM, it applies only to the specific PHP version. With EasyApache 4, multiple PHP versions can run simultaneously, so you m…"
vertical: "Hosting"
date: "2024-03-04"
last_modified: "2026-07-21"
---

# Setting PHP memory_limit with EasyApache 4

When setting the memory\_limit in WHM, it will change only for the version of PHP installed. EasyApache 4 allows for multiple PHP versions to run at the same time on your server. If you want the memory\_limit to be set across all versions, you will need to repeat this procedure for each version of PHP installed on your server. If you only need the memory\_limit for a specific site or folder to be increased, please see [PHP Memory\_Limit](https://docs.nexcess.com/hosting/performance/website-optimization/php-memory-limit/).

1. Log into WHM.
2. Search for PHP in the search bar at the top of the menu on the left-hand side of the page.

![php search in menu](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_kuayiR.webp)3. Select **MultiPHP INI Editor** from the menu on the left-hand side of the page.  
    ![multiphp editor highlighted](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_HNauqO.webp)
4. Next, select the PHP version you have installed. To find your version, see our article [Understanding Your PHP Version.](https://docs.nexcess.com/hosting/performance/upgrades/php-versions-and-why-they-matter-for-your-website/)  
    ![select php version from drop down](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_JydtlK.webp)
5. Scroll down the page to the memory\_limit section.  
    ![memory_limit highlighted](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_8LpFVZ.png)
6. Set the memory\_limit to your desired maximum in bytes and click **Apply** to save the changes.  
    ![apply buttonhighlighted](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_EyBxzF.webp)

If you are still experiencing memory\_limit errors after increasing your global memory\_limit, please contact our [Support team](https://docs.nexcess.com/sites-stores/support/).
