Bluehost Web Hosting Help

PHP Memory Limits

Summary

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

  1. Login to your Bluehost cPanel account
  2. Click on the PHP Config icon located under "Software/Services"
  3. Click the Save Changes button

Using the File Manager

  1. Locate the Files section
  2. Click the File Manager icon.
    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
    Screenshot of Code Edit
  6. Click the Edit button.
  7. Search for "memory_limit", without the quotes.
  8. You can press Control + F on your Windows PC or Command + F on your Mac to use your browsers search function.

  9. Enter the new memory limit for your php applications.
  10. It is not recommend to increase this limit past 128 MB.

  11. Click "Save Changes"

Using an FTP Client

  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. It is not recommend to increase this limit past 128 MB.

  8. Save the file.
  9. Upload the file using your FTP client.
Knowledgebase Article 54,156 views bookmark tags: php wordpress (updated 280 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Knowledgebase Article

Wordpress Fatal error: Allowed memory size exhausted

Available PHP Memory Exhausted. (updated 1008 days ago)

Video

How to Increase the PHP Memory Limit

How to install the php.ini file and then increase the PHP Memory limit. (updated 743 days ago)

Knowledgebase Article

Wordpress Error: Unable to create directory

Wordpress Error: Unable to create directory /wp-content/uploads/2009/mydir/summer/ Is its parent directory writable by the server? (updated 1625 days ago)

Related Help Content

Knowledgebase Article

PHP symlink (symbolic link) is giving 500 errors

When creating a symlink to a php page, I get a 500 error. I am able to use symlinks to other files and folders fine. (updated 1414 days ago)

Knowledgebase Article

PHP Version Selection (PHP Config)

How do I enable PHP 5 for my PHP applications? How do I change to PHP FastCGI? How do I use a single php.ini file? (updated 230 days ago)

Knowledgebase Article

Manually editing your error pages

How to customize your html or php error pages. (updated 534 days ago)

Getting Started Article

Migrating an Existing WordPress.com Blog

If you have a WordPress blog hosted on wordpress.com, you can easily export it and import it to WordPress that is installed on your hosting account with bluehost. Login to the WordPress D (updated 895 days ago)

Knowledgebase Article

Fatal error: Unable to read X bytes in /home/user/public_html/myfile.php on line Y

I get this with some of my php files: Fatal error: Unable to read X bytes in /home/user/public_html/myfile.php on line Y (updated 1660 days ago)

Knowledgebase Article

Configuring the PHP Environment With php.ini

How do I change the PHP environment for my site with php.ini? (updated 260 days ago)

Knowledgebase Article

Mail List authentication failures (php/phplist)

I'm trying to configure an application (phpList) and it requires that I enter (in config.php) a username and password for a POP3 account to handle bounces. I keep getting a POP3 error and it can't log (updated 1671 days ago)

Knowledgebase Article

FrontPage will not publish and my Wordpress is not working

Have FrontPage extensions and Wordpress installed on account. Was working fine in the past, but now cannot connect with FrontPage and Wordpress does not link properly. (updated 704 days ago)