Loading...

Knowledge Base

Scripting: How to Increase PHP Upload Size Limits

How to Increase PHP Upload Size Limits

  1. Log into your Control Panel.
  2. Go to CGI and Scripted Language Support.
  3. Click PHP Scripting.
  4. Your php.ini file is displayed in a text box at the bottom. Click Edit if you cannot edit the php.ini file text.
  5. Locate the following blocks of code within your php.ini file:
    ; Maximum size of POST data that PHP will accept.
    ; http://php.net/post-max-size
    post_max_size = 20M ; Maximum allowed size for uploaded files.
    ; http://php.net/upload-max-filesize
    upload_max_filesize = 20M

    ; Maximum number of files that can be uploaded via a single request
    max_file_uploads = 20
  6. Modify the highlighted value for post_max_size as desired (example: 30M, or 40M, or 50M).
  7. Modify the highlighted value for upload_max_filesize as desired (example: 30M, or 40M, or 50M). This value should not be larger than the post_max_size value.
  8. Modify the highlighted value for max_file_uploads as desired (example: 30, or 40, or 50).
  9. Click Save.