How To Increase the PHP Memory Limit | Bluehost Support
  1. bluehost knowledge base

How To Increase the PHP Memory Limit

This article will explain how to modify the total amount of RAM that can be used by your PHP applications.

Generating a new php.ini file

Note: The Advanced tab will load your cPanel. Legacy accounts will feature a horizontal navigation bar at the top of the screen, while Bluerock account users will see a vertical navigation menu on the left-hand side of the screen. To learn more, please see Bluerock vs. Legacy.

Bluerock

  1. Log in to your Bluehost control panel.
  2. Click the Advanced tab from the side navigation menu to the left.
    rock-bh-advanced-tab
  3. Under the Software section, click on the MultiPHP INI Editor icon.
    rock-phpini-bh.png
  4. Select the domains that you want to set up or update from the list.
  5. Select the attributes of PHP you would like to update on the left-hand side.
  6. Set your desired values (increase/decrease PHP Memory Limit) on the right-hand side.
  7. Click the Apply button to finish the update.

Legacy

  1. Log in to your Bluehost control panel.
  2. Under the Hosting tab, click cPanel in the submenu.
  3. Scroll down and look for the programming section, then click the PHP Config.
    php-config.png
  4. Click the Save Changes button.

Using the File Manager

  1. Locate the Files section
  2. Click the File Manager icon.
    • Rock:
      rock-file-manager
    • Legacy:
      legacy-file-manager
  3. If prompted, choose Web Root; otherwise, navigate to the public_html folder.
  4. Right-click the php.ini file.
  5. Choose either Edit or Code Edit.
  6. Click the Edit button.
  7. Search for memory_limit without the quotes.
  8. Enter the new memory limit for your PHP applications.
  9. Click Save Changes

Using an FTP Client

  1. Connect to the server with your FTP client.

    To Learn more, please see Introduction to FTP

  2. Navigate to the public_html folder.
  3. Download the php.ini file.
  4. Open the file with any text editor.
  5. Search for memory_limit without the quotes.
  6. Enter the new memory limit for your PHP applications.
  7. Save the file.
  8. Upload the file using your FTP client.

Tip: The default PHP Memory Limit on your server is 256M. The universal recommended baseline is 128MB, which should be more than enough for most sites unless you have a plugin or theme that needs more. You can always customize this value inside your Cpanel, depending on your needs. 

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - From our home page, click the Contact option in the top right-hand corner, then click Chat Now.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.