HostMonster 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 HostMonster 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 89,326 views bookmark tags: php wordpress (updated 592 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Available PHP Memory Exhausted. (updated 1321 days ago)
Knowledgebase Article 129,327 views tags: exceeded fatal memory php wordpress

How to install the php.ini file and then increase the PHP Memory limit. (updated 1055 days ago)
Video "How-to" Tutorial 137,034 views tags: limit troubleshooting wordpress

Wordpress Error: Unable to create directory /wp-content/uploads/2009/mydir/summer/ Is its parent directory writable by the server? (updated 1937 days ago)
Knowledgebase Article 39,681 views tags: create unable wordpress

Related Help Content

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 1727 days ago)
Knowledgebase Article 53,009 views tags: link php

How to customize your html or php error pages. (updated 846 days ago)
Knowledgebase Article 69,208 views tags: errors php

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 1972 days ago)
Knowledgebase Article 84,448 views tags: php unable

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 hostmonster. Login to the WordPress D (updated 1207 days ago)
Getting Started Article 231,026 views tags: blog export file import wordpress

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 1984 days ago)
Knowledgebase Article 68,629 views tags: list mail php phplist

How do I change the PHP environment for my site with php.ini? (updated 307 days ago)
Knowledgebase Article 348,918 views tags: configuration php server

Tips and tricks to make your wordpress blog load faster (updated 307 days ago)
Knowledgebase Article 33,584 views tags: optimizing wordpress

I installed TikiWiki and I am getting the following error: Notice: Only variable references should be returned by reference in /home/~/lib/adodb/adodb.inc.php on line 2741 Notice: Only variable refere (updated 1972 days ago)
Knowledgebase Article 56,317 views tags: fantastico php wiki