title: How to increase maximum execution time in laravel?
body: <p>I want to upload large excel file. But because the file contains many rows, the loading is so slow and I got this error:</p>
  
  <blockquote>
    <p>FatalErrorException in Controller.php line 457: Maximum execution time of 120 seconds exceeded</p>
  </blockquote>
  
  <p>I already put this on my .htaccess:</p>
  
  <pre><code>&lt;IfModule mod_php5.c&gt;
      php_value max_execution_time 1500
      php_value upload_max_filesize 15M
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I also add this at the top of the controller:</p>
  
  <pre><code>ini_set('memory_limit', '3000M');
  ini_set('max_execution_time', '0');
  </code></pre>
  
  <p>I also change max_execution_time at the php.ini:</p>
  
  <pre><code>max_execution_time = 300
  </code></pre>
  
  <p>And also add this on config.inc.php:</p>
  
  <pre><code>$cfg['ExecTimeLimit'] = 0;
  </code></pre>
  
  <p>I wonder why it's not work at all and keep getting me into that error... Is there a miss at the code? Any help would be appreciate, Thanks!</p>