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
- Login to your Bluehost control panel.
- Click the Advanced tab from the side navigation menu to the left.
- Under the Software section, click on the MultiPHP Manager icon.
- Select the domains that you want to set up or update from the list.
- Select the version of PHP you would like to use at the top right-hand side.
- Click the Apply button to finish the update.
Legacy
- Login to your Bluehost control panel.
- Under the Hosting tab, click cpanel in the submenu.
- Scroll down and look for the programming section, then click the PHP Config.
- Click the Save Changes button
Using the File Manager
It is not recommended to increase this limit past 128 MB.
- Locate the Files section
- Click the File Manager icon.
- If prompted choose Web Root, otherwise navigate to the public_html folder.
- Right click the php.ini file
- Choose either Edit or Code Edit
- Click the Edit button.
- Search for memory_limit, without the quotes.
- Enter the new memory limit for your php applications.
- Click Save Changes
Using an FTP Client
It is not recommended to increase this limit past 128 MB.
- Connect to the server with your FTP client.
FTP - Uploading the website
- Navigate to the public_html folder.
- Download the php.ini file.
- Open the file with any text editor.
- Search for memory_limit, without the quotes.
- Enter the new memory limit for your php applications.
- Save the file.
- Upload the file using your FTP client.