Error: Maximum execution time of 30 seconds exceeded

I was facing problem of this error. Since there is two type of cPanel servers.

  1. Apache module ( In "Apache module", you can change your PHP settings via a .htaccess file )
  2. CGI Module ( you can change your local php.ini file in order to make modifications to your PHP setup. php.ini )
My cPanel Server is CGI so I tried all the php.ini file by adding these details:- 

max_execution_time = 300
max_input_time = 600
memory_limit = 2560M
upload_max_filesize = 100M

but my problem was not solved.
so I tried this rule.

I added this code at the top of php script. that running the script for uploading or downloading
ini_set('max_execution_time', 300);

now my problem is solved.



Popular posts from this blog

Cant use dump() function in twig files or how to enable debug in opencart twig or print_r alternate use dump() in opencart 3.0

maximum execution time error when importing sql data file since php.ini has been already set max execution time 3000

SEO Custom URL in Opencart