Increasing The PHP Memory Limit

Increasing PHP Memory Limit


Sometimes sites may experience errors due to limited PHP memory.  If this occurs, you need to increase the PHP memory limit for your hosting.


There are two methods to complete this:


Method 1 using the cPanel File Manager:


  1. Log into your cPanel

  2. Select File Manager under the Files category

  3. Click New File

  4. Name the file php.ini

  5. Select the file in the list

  6. Click Edit

  7. Add the line memory_limit = #M  where # equals the new php memory limit in MB; for example memory_limit = 64M

  8. Click Save Changes

  9. Click Close

  10. If you are using Wordpress, select the php.ini file in the file list.

  11. Click Copy

  12. In the text field, add /wp-admin so that it reads /public_html/wp-admin



Method 2 Using a text editor and FTP:


  1. Create a new document using a text editor such as Notepad (Windows), TextWrangler (Mac), or Sublime Text

  2. Add the line memory_limit = yourmemorylimit M

    • For example:  memory_limit = 64M would increase the PHP memory limit to 64 MB.

  3. Save this file as php.ini

  4. Log into your server through FTP using a FTP client such as FileZilla.  The credentials will be the same as those for accessing your CPanel.

  5. Upload the php.ini file to the public_html directory.

  6. If you are using WordPress on your site, you must also upload the php.ini file to the wp-admin folder.

  • 9 Users Found This Useful
Was this answer helpful?

Related Articles

Accessing cPanel

The cPanel interface is one of the easiest and most comprehensive ways to manage your webspace,...

Canceling Your Account

  Go to the my.Sevaa.com Page and log in with your username and password. Once you are...

Changing Your cPanel Password

Go to my.sevaa.com and login with your username and password Click the tab at the top...

Creating a MySQL Database

Log into your CPanel Select “MySQL Databases” under the...

Restoring from a R1Soft Backup

Your website is automatically backed up every 12 hours.  Please follow these instructions in...