In this tutorial, we’ll show you how to set a PHP upload size restriction. Introduction:-The maximum file upload size in cPanel is set to 2MB by default. To increase the upload limit, follow this procedure.

To proceed, follow the Procedure:

  1. Log into WHM.
  2. Look for MultiPHP INI Editor in the search bar.
  3. Choose the PHP version that your website uses.
  4. The following variables should be increased.
    upload_max_filesize

    post_max_size (This should be at least as big as upload max file size.)
    memory_limit (This should be at least as big as post max size.)

    max_execution_time (Optional, but it can help prevent timeout issues while working with huge files.)

  5. Now, Click “Apply”

    Repeat for all PHP versions that demand larger file upload sizes.

    Note: Please keep in mind that these variables have a maximum capacity of 2GB.

Conclusion

We sincerely hope that you must now have got a clear idea regarding how can you increase the maximum file upload size limit in PHP. If you continue to have problems with the procedure outlined above, please contact the bodHOST Team for proactive help 24×7.

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How to Install oci8 for EA-PHP

If you are having trouble installing oci8 for EA-PHP, this Article will provide you with…

How to Access and Monitor WordPress Error Logs

How to Access and Monitor WordPress Error Logs

As WordPress error logs are your website’s black box recorder, finding and accessing them is…

What Is Server Name Indication (SNI)? How It Works and Why It’s Important

What Is Server Name Indication (SNI)? How It Works and Why It’s Important

As the internet grows, security has become a top priority for websites. SSL/TLS certificates are…