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.
source to share
<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.
source to share
change values
- max_execution_time 25000
- max_input_time 25000
- memory_limit 500M
- display_errors On to see where the problem is
- post_max_size 500M
- upload_max_filesize 500M
and reload the apache or nginx tu boot changes
in ubuntu you can use this command to restart apache sudo service apache2 restart
source to share