ispCP - Board - Support
disconnect downloading via http after 5 min - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: disconnect downloading via http after 5 min (/thread-6875.html)



disconnect downloading via http after 5 min - marcins - 06-04-2009 05:27 AM

Hi,

I have installed ispcp on new debian without any problems, but i have one issue that i can't figured it out.

When i try download some big files from my website (ie 1 GB), connection is drop (disconnect) by server after 5 minutes.

Is there any veriable is apache or php config files that say about how long can session be open per user?

regards


RE: disconnect downloading via http after 5 min - marcins - 06-05-2009 05:22 PM

Can somebody help me with this problem, please?

There are no errors in log files.
options for mod_cband are mark as #
I have no idea what to do.


RE: disconnect downloading via http after 5 min - nuke3d - 06-05-2009 06:37 PM

First off, do you download this file from a PHP script, or from a plain HTML page/direct link?

If it's from a PHP script you'd probably have to check the fastcgi configuration (and the file /var/log/apache2/suexec.log), otherwise I don't quite know what could be the problem. Best have a look at the logfiles in /var/log/apache2/users/*-error.log


RE: disconnect downloading via http after 5 min - marcins - 06-05-2009 06:45 PM

i download from php script.

in suexec.log i dont have any errors, but in /var/log/apache2/users/domain-error.log
i can see now something like this:

... script.php (PID) exit(busy timeout), terminated by calling exit(), return code: 0


RE: disconnect downloading via http after 5 min - alecksievici - 06-05-2009 07:18 PM

as i recall fcgi has a limit before it kills a fcgi process to ~300 seconds. i'm not 100% sure about this...


RE: disconnect downloading via http after 5 min - marcins - 06-05-2009 07:34 PM

where can i find this settings?


RE: disconnect downloading via http after 5 min - marcins - 06-05-2009 10:00 PM

i think i found problem.
As you said there is a idletimeout option.
First i set it in /etc/apache2/mods-enabled/fcgid_ispc.conf, but without any result.
Then i found somethink in this file /etc/apache2/mods-available/fastcgi_ispcp.conf
and line number 34:
FastCgiServer /var/www/fcgi/master/php-fcgi-starter -user vu2000 -group vu2000 -idle-timeout 300

Now i just change it to -idle-timeout 0, and i'm testing it (right now everythink is OK)

Where can i change this setting that it will apply only to one domain, not to all my users?

Best regards, and thx 4 help


RE: disconnect downloading via http after 5 min - alecksievici - 06-06-2009 03:19 AM

the fcgi ini for each domain is located at
Code:
/var/www/fcgi/domain.tld/php5/php.ini
but i do not see anything related to -idle-timeout