Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Max execution time issue

I want to increase the maximum execution & input time for my PHP scripts. I added the following two lines to my .htaccess file located at the document root:

php_value max_execution_time 8000
php_value max_input_time 4000 

It works perfectly well on my development server, but on the production server (GoDaddy) I'm getting a 500 internal server error. Why is it so?

like image 420
Dave Morris Avatar asked Mar 10 '11 17:03

Dave Morris


1 Answers

Perhaps you should try putting the same code into a php5.ini file instead of a .htaccess file. Godaddy servers are usually setup to accept configuration settings from php5.ini file.

Make a text file with the filename as "php5.ini" and put the following in it:

max_execution_time 8000
max_input_time 4000
like image 183
Sourav Avatar answered Sep 21 '22 23:09

Sourav