Sign Up / Log In
Need help?
1 213 559 2459
Online Support Web Hosting

Increase the File Upload size in php.ini

What is php.ini?

Php.ini is a PHP configuration file with which you can influence how PHP functions. This file is usually stored in the public_html folder and gets activated whenever PHP starts up.

If you do not see a file named php.ini in your public_html folder, you can create one in File Manager.

By default, your site will use the standard PHP settings in your server. However, if you need to revise or change any of the default PHP settings in your server, you can do so by creating and/or modifying a php.ini file.

How to increase the File Upload size in php.ini

One modification you can implement in php.ini is increasing the maximum File Upload size in your website.

To increase the maximum upload file size (upload_max_filesize) in the php.ini file, follow the steps below:

  1. Click Sign Up / Log In at the top of this page.
  2. Select Hosting Manager from the drop-down menu.
  3. Enter your username and password, and click Log In.
  4. On the Home page, click the word Files or the [ v ] arrow symbol on the right side.
  5. Click the File Manager icon, which is next to the Directory Privacy icon.
  6. On the pop-up screen, select Web Root (public_html/www) and click Go.
  7. Next screen, all of the files and folders in your web space will be displayed in a tree-style directory. Look for the php.ini file in your public_html folder.
  8. Right-click on the said file and click Edit.
  9. Next page, within the file, search for the following text:
  10.     ;;;;;;;;;;;;;;;;
        ; File Uploads ;
        ; ;;;;;;;;;;;;;;
        ; Whether to allow HTTP file uploads.
        file_uploads = On
        ; Temporary directory for HTTP uploaded files (will use system default if not specified).
        ;upload_tmp_dir =
        ; Maximum allowed size for uploaded files.
        upload_max_filesize = 128M (This is where you set your preferred maximum upload size.)

    Make sure that the file_uploads section is set to on, and the Maximum allowed size for uploaded files is set to your preferred size.

  11. Click Save Changes.

Changes saved in the php.ini file will affect all the other files that are in the same folder as the php.ini file. However, if you want the changes to affect all directories, you can set the php.ini file to recursive through .htaccess. To do this, click the link below:

Important Note: Any edits made to files here will be immediately displayed on your site. As such, it is recommended to use the File Manager edit function only for small changes. Any large site changes that could damage its functionality should be done using FTP after creating a backup.

Was this helpful? Yes No 19% of people found this helpful.
Need Help? Chat Now