Increasing PHP Memory Limit
To increase the PHP memory limit in GoDaddy cPanel, follow these steps:
- Login to GoDaddy cPanel and open the file manager.
- Go to the root directory.
- Create a new file named php5.ini if you do not already have that file, otherwise edit php5.ini.
- Save and close the file.
Changing PHP Upload Limits
To change PHP upload limits for a GoDaddy Linux Hosting account:
- Go to the product page.
- Under Web Hosting, select Manage next to the account.
- In the overview, click on cPanel Admin.
- Select PHP Version on the home page under Software.
For Managed WordPress:
- Open "My Products" after logging in.
- Select the site.
- Choose "PHP Settings" then "Settings".
- Change "upload_max_filesize".
- Save modifications.
For other hosting, edit .htaccess
.
On the cPanel Home page:
- Choose PHP Version.
- Select Switch To PHP Options.
- Click upload_max_filesize.
- Pick a new value.
- 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:
- Log into your account.
- Click "Manage" by Web Hosting.
- In Software, click "Select PHP Version".
- 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:
- Open the MultiPHP INI editor.
- 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.