Increased runtime for php

Update: This is not a publicity issue! I researched and tried many options / answers, but still the webpage does not allow users to download the file after exactly 20 seconds.

Update: I tried to switch from fast-cgi to php-fpm but that didn't work for me either. What else should I change to overcome the 20 second timeout?

When I download large files through the web browser, after exactly 20 seconds, it stops downloading. In particular, approximately 40% of 100 MB of files are downloaded within 20 seconds; I can see download percentage in Chrome browser. Then the percentage value stops after 20 seconds and shows the ERR_CONNECTION_RESET error. I checked the logs but there is nothing about it.

My php.ini config looks like this:

max_execution_time 300000
max_input_time 300000
upload_max_filesize 500M
post_max_size 500M
memory_limit 1024M
max_file_uploads 30
Timeout 8000 (in apache2.conf)
LimitRequestBody 0 (in htaccess)

      

What else do I need to change to increase the runtime? Obviously there is some configuration that prevents the file from loading after 20 seconds. My guess is that something needs to be configured in the Apache setup.

+3


source to share


3 answers


<IfModule mod_php5.c>
   php_value post_max_size 100M
   php_value upload_max_filesize 100M
   php_value memory_limit 100M
   php_value max_execution_time 300000
   php_value max_input_time 300000
   php_value session.gc_maxlifetime 1200
</IfModule>

      



paste this into your .htaccess file. try if it works or not.

+2


source


you have to change max_input_time, upload_max_file_size and post_data_limit in php.ini file. It should work.



0


source


change values

and reload the apache or nginx tu boot changes

in ubuntu you can use this command to restart apache sudo service apache2 restart

0


source







All Articles