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

Legacy

  1. Login 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.
  4. Click the Save Changes button

Rock

  1. Login to your Bluehost control panel.
  2. Click the Advanced tab from the side navigation menu to the left.
  3. Under the Software section, click on the MultiPHP Manager icon.
  4. Select the domains that you want to set up or update from the list.
  5. Select the version of PHP you would like to use at the top right-hand side.
  6. Click the Apply button to finish the update.

Using the File Manager

It is not recommended to increase this limit past 128 MB.

  1. Locate the Files section
  2. Click the File Manager icon.
  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

It is not recommended to increase this limit past 128 MB.

  1. Connect to the server with your FTP client.

    FTP - Uploading the website

  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.