How to Modify the PHP Max Upload Size

When you try running a script, or plugin, or uploading large files to your website, you might encounter an error. One of the possible causes of this issue is that the upload exceeds the default maximum file size configuration on your web server.

  1. Altering PHP Parameters Using cPanel

The easiest way to modify the PHP maximum upload size is to use cPanel. To do this, follow these steps:

  1. Log in to your cPanel account.

    2. Click on the Software section.

    3. Click on the MultiPHP INI Editor link.

 

4. Select the domain that you want to modify the upload size for and click apply

5. Scroll down to the Upload Max Filesize setting, enter the desired maximum upload size in MB, and click on the Apply button.

 

 

2. Changing PHP Post Max Size via the .htaccess File

 To change your post size limits using PHP scripts,

  1. Navigate to File Manager in your cPanel.

 

2. Open the public_html folder and find .htaccess.

 

  1. Open the file and insert the following PHP scripts:

 

        php_value upload_max_filesize XXM

        php_value post_max_size XXM

 

  • Change the “XX” into your desired size.

 

  •  Once you’re done with the configuration, click Save & Close.

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)