Web Hosting Talk







View Full Version : FTP Time Out


dlyles
09-06-2001, 09:50 AM
Ok, I may sound like an idiot, but I'm trying to increase the time out. I know there's a file to edit, however (and this is when the idiot comes out) I forgot the command in Telnet to edit files and I don't know what file it is. I guess you can say I'm Telnet illiterate. Thanks in advance.

Reg
09-06-2001, 03:19 PM
Here ya go. Log into telnet as admin. Type su-, reenter your admin password. Now do the following:

pico /etc/httpd/conf/httpd.conf

Now, find the line that has FTP timeout and change it from 300 to whatever you want it at.

Save the changes and exit.

When back at the command prompt type the following:

/etc/rc.d/init/httpd restart

Then type exit twice to log you completely out.

Note that the httpd restart command is not the best way to restart Apache. I would recommend you type:

1. /etc/rc.d/init/httpd stop
2. /etc/rc.d/init/httpd start

But you can use whichever you prefer.

Mike
09-06-2001, 05:55 PM
Editing the httpd.conf file will not do anything for your FTP daemon. The httpd.conf is for the web server.

I don't think it's possible to extend the timeout for an FTP session, without compiling the timeout into the server itself. I don't know of any config file that allows one to do this. Then again, that would depend on what FTP daemon you are running.

Reg
09-06-2001, 06:20 PM
Sorry about that. That was the wrong file. I just checked my server. This is what you need to edit. In telnet as the root, type in the following:

pico /etc/proftpd.conf

Change the TimeoutNoTransfer and TimeoutIdle to something other than 300. Mine is set to 900.

Mike
09-06-2001, 06:45 PM
Again, this rule will only apply if dlyles is running ProFTPD.

If he's running wu-ftpd, or any other FTP daemon, this will not work.

dlyles
09-06-2001, 09:01 PM
I guess that's why it's now working :). I changed the timeout, but it wasn't recognized. I can see the change when I go back, but...

Thanks again guys.