Change PHP max_execution_time and max_input_time using .htaccess

Re: Changing max_execution_time and max_input_time in .htaccess for a single domain

Sometimes you need more time for your script or upload to complete however you want to avoid changing these setting for the entire server, so the option to change for a single domain is there when running PHP as Apache.

To change max_execution_time and max_input_time from the 60 second default add the following lines to the top of your .htaccess:

php_value max_execution_time 600
php_value max_input_time 600

The change is instantly active and affects only the virtual host in question.

Was this helpful?
Change PHP max_execution_time and max_input_time using .htaccess written by UKC average rating 5/5 - 1 user ratings