How Do I Increase Php Limit in Godaddy Cpanel? Adjusting PHP Settings in GoDaddy

Increasing PHP Memory Limit

To increase the PHP memory limit in GoDaddy cPanel, follow these steps:

  1. Login to GoDaddy cPanel and open the file manager.
  2. Go to the root directory.
  3. Create a new file named php5.ini if you do not already have that file, otherwise edit php5.ini.
  4. Save and close the file.

Changing PHP Upload Limits

To change PHP upload limits for a GoDaddy Linux Hosting account:

  1. Go to the product page.
  2. Under Web Hosting, select Manage next to the account.
  3. In the overview, click on cPanel Admin.
  4. Select PHP Version on the home page under Software.

For Managed WordPress:

  1. Open "My Products" after logging in.
  2. Select the site.
  3. Choose "PHP Settings" then "Settings".
  4. Change "upload_max_filesize".
  5. Save modifications.

For other hosting, edit .htaccess.

On the cPanel Home page:

  1. Choose PHP Version.
  2. Select Switch To PHP Options.
  3. Click upload_max_filesize.
  4. Pick a new value.
  5. Apply.

Common PHP Configuration Changes

To add values:

max_execution_time 600
max_file_uploads 100
memory_limit 128M
upload_max_filesize 64M
post_max_size 64M
max_input_time 60

To increase the max upload file size:

  1. Log into your account.
  2. Click "Manage" by Web Hosting.
  3. In Software, click "Select PHP Version".
  4. Click "Switch to PHP Options".

To change image size limits:

  • Images over 15MB may fail to upload.
  • Set new limits accordingly.

cPanel vs. WHM

In cPanel, you can edit PHP directives for locations and domains under Software:

  1. Open the MultiPHP INI editor.
  2. Scroll to upload_max_filesize and ensure post_max_size is larger.

Whereas cPanel edits local directives, WHM edits the main php.ini file and this affects accounts using that PHP version.

Important Notes:

  • The upload_max_filesize PHP setting caps upload sizes. Increase cautiously.
  • Also increase post_max_size.
  • Test by uploading a file or checking phpinfo.php.

Plugins or .htaccess edits can change WordPress limits. In cPanel, adjust the PHP server limits instead.

Leave a Comment