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

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.

    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.