Blog Post Header
cPanel December 25, 2025 6 views

How to Increase PHP Memory Limit Using cPanel

How to Increase PHP Memory Limit Using cPanel

How to Increase PHP Memory Limit Using cPanel

When working with PHP scripts, you may encounter memory limit issues that can affect the performance of your website or web application. Fortunately, you can easily increase the PHP memory limit using cPanel, a popular web hosting control panel. In this guide, we will walk you through the steps to increase the PHP memory limit in cPanel.

Step 1: Log in to cPanel

First, you need to log in to your cPanel account. You can access cPanel by entering your domain name followed by "/cpanel" in your web browser. Once you enter your username and password, you will be redirected to the cPanel dashboard.

Step 2: Navigate to the PHP Configuration section

In the cPanel dashboard, look for the "Software" section and click on "Select PHP Version" or "MultiPHP Manager" depending on your cPanel version. This will take you to the PHP configuration settings.

Step 3: Increase the PHP memory limit

Once you are in the PHP configuration settings, you will see various PHP options that you can customize. Look for the option labeled "memory_limit" which specifies the maximum amount of memory that PHP scripts can use. By default, this limit is set to a low value such as 128M.

To increase the PHP memory limit, simply click on the value next to "memory_limit" and select a higher value from the drop-down menu. You can choose values like 256M, 512M, or even higher depending on your requirements.

Step 4: Save the changes

After selecting the desired memory limit, click on the "Apply" or "Save" button to save the changes. cPanel will update the PHP configuration settings, and the new memory limit will be applied to your website or web application.

Step 5: Test the new memory limit

It is recommended to test your website or web application after increasing the PHP memory limit to ensure that the changes have taken effect. You can run a memory-intensive script or check the PHP info page to verify the updated memory limit.

Conclusion

Increasing the PHP memory limit using cPanel is a simple and effective way to optimize the performance of your website or web application. By following the steps outlined in this guide, you can easily adjust the memory limit to meet the requirements of your PHP scripts. Remember to regularly monitor the memory usage of your website and adjust the PHP memory limit accordingly to ensure smooth operation.

Author: Admin
Join Our Community

Create an account to leave comments, save your favorite posts, and get personalized recommendations.