In this chapter, we will cover how to increase the limit of uploading file in PHP using .htaccess this is an Apache configuration file we can do many things with this but this tutorial is just only for uploading large file size.

Few steps you need to follow:

  1. Login to your cpanel
  2. Choose or Select domain where you want to increase
  3. create .htaccess in root direcoty
  4. and put the following code for uploading large file


php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_input_time 300
php_value max_execution_time 300

Thanks, This will help you.