Max runtime

I want to increase the maximum runtime and input time for my PHP scripts. I added the following two lines to the .htaccess file located in the root directory of the document:

php_value max_execution_time 8000
php_value max_input_time 4000 

It works fine on my development server, but on a production server (GoDaddy) I get 500 internal server errors. Why is this so?

+5
source share
3 answers

Perhaps you should try putting the same code in the php5.ini file instead of the .htaccess file. Godaddy servers are usually configured to receive configuration settings from the php5.ini file.

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

max_execution_time 8000
max_input_time 4000
+7

, GoDaddy , php.ini, config PHP .htaccess.

+2

php_value max_input_time 4000O- This last symbol is capital O, not zero 0.

+1
source

All Articles