PDA

View Full Version : [HOWTO] Upgrading to latest ioFTPD + latest .ini


ADDiCT
10-03-2003, 02:29 PM
from 4.* to 5.*   (keeping users & groups)

U will need to reinstall all scripts, since most of them use different techniques (like shmem) or some commands have changed. U can however keep your users & groups, what is probably most important :)

1. Backup the 3 dirs \users\ and \groups\ and \etc\
2. Install new ioFTPD 5
3. Put the dirs \users\ and \groups\ and \etc\ back from your backup.
Make sure u keep the new \etc\Host.Rules file from ioFTPD 5
4. Go to http://www.ioftpd.com/passwdconv/
- paste your \etc\passwd file there to convert it, then rename it to \etc\UserIdTable
- paste your \etc\group file there to convert it, then rename it to \etc\GroupIdTable
5. config your new ioFTPD 5 (ioftpd.ini, host.rules, ...)

__________________________________________________

from 5.0.* to 5.1.*

This applies to sections [scripts] [events] [sheduler] [pre] [post] in ioFTPD.ini
(basically everywhere u run an external script)


old ioftpd 5.0.* (and 4.*)

[Events]
OnUploadComplete = ..\scripts\ioZS\ioZS.exe Upload
OnUploadComplete = ..\scripts\nfourl.itcl
[Post]
dele = ..\scripts\ioZS\ioZS.exe Delete
[Scripts]
traffic = ..\scripts\ioGroups.exe sitestats
myinfo = %..\scripts\ioGroups.exe userinfo %[$user]


new ioftpd 5.1.*

[Events]
OnUploadComplete = EXEC ..\scripts\ioZS\ioZS.exe Upload
OnUploadComplete = TCL ..\scripts\nfourl.itcl
[Post]
dele = EXEC ..\scripts\ioZS\ioZS.exe Delete
[Scripts]
traffic = EXEC ..\scripts\ioGroups.exe sitestats
myinfo = %EXEC ..\scripts\ioGroups.exe userinfo %[$user]

Basically, u put EXEC infront of all executable scripts (exe bat ...), and TCL infront of itcl scripts. Note that % goes infront of the EXEC/TCL. Message files and aliasses remain unchanged:
HELP = !..\help\help.msg
RHS = @config rehash

Also in message files, using the %[execute(..)] cookie:
%[execute(EXEC D:\ioftpd\scripts\blabla.exe Arguments)]

EwarWoo
10-04-2003, 09:54 AM
All you need to change is the .exe

(And yeah, I do know its a bit silly with these ones, but still will help some considerring it came with full package does make 1 stop and wonder)

EwarWoo
10-13-2003, 04:39 AM
1. Replace ioFTPD.exe

2. Open ioFTPD.ini and replace:
Worker_Thread_Min = 10 # Minimum amount of worker threads
Worker_Thread_Max = 10 # Maximum amount

with:
Worker_Thread_Count = 10 # Number of worker threads

EwarWoo
10-17-2003, 07:54 AM
Update ioFTPD.exe

In ioFTPD.ini in the section titled:

[ioFTPD]
ad dthe following line:
File_Concurrent_Requests = 5 # Limit maximum concurrent reads&writes to this value

(ini change came in for 5.1.11, rest are just .exe swaps)

EwarWoo
10-23-2003, 05:43 AM
Wohooo!! We now have B/W limitting :D
Only downside is another largish upgrade job ;)
Here we go.

Open ioFTPD.ini and change the following:
1. Under [Device Name] (the listing for the device in device section, default is [ANY]) add the lines:
Global_Inbound_bandwidth = 100 # Inbound bandwidth in kb/sec
Global_Outbound_bandwidth = 100 # Outbound bandwidth in kb/sec

2. Under [Network] add the line:
Scheduler_Update_Speed = NORMAL # Socket scheduler update speed (HIGH/NORMAL/LOW/DISABLED)

3. Under [Change-Permissions]
add the following:
speedlimit = 1GM

Change the .exe

And we're done, go limit those leechers ;)

(ini update is for 5.1.11 - 5.2.0, rest just .exe updates.)

iXi
10-23-2003, 12:36 PM
works nice

but 1 question where are the speedlimit settings for each user are stored?

cya

Zer0Racer
10-23-2003, 02:36 PM
In user file. LIMITS <BW> <BW> X X X

EwarWoo
10-24-2003, 03:35 AM
1. Open ioFTPD.ini: Change your default device (for sake of demonstration will use [FTP-Data] as d1 did). Change Inbound_bandwidth and Outbound_bandwidth to Global_Inbound_bandwidth and Global_Outbound_bandwidth.

Steps 2,3 are optional and only useful if you want to cap control channel speeds and protect from DoS attacks.

2. Add a new device called [FTP-Listen] (or whatever) with the following settings:
[FTP-Listen]
Host = (same host as FTP-Data)
Global_Inbound_bandwidth = 10 #limit overall speeds
Global_Outbound_bandwidth = 10 #limit overall speeds
Client_Inbound_bandwidth = 2 #limit per user speeds
Client_Outbound_bandwidth = 5 #limit per user speeds

3. [FTP-Service] (or whatever is your ftp service name)
...
Device_Name = FTP-Listen
Data_Devices = FTP-Data

4. Change the exe.

Now thats not the only config, not by a long way from looks of it, but thats prolly what I'll be using and looks like most straight forward.
Must admit though, dont wanna say this does work till I've tried it and too busy to update my sites atm, so if anyone sees something wrong drop a reply.

/edit: just updated my sites and seems to work anyways :)

Zer0Racer
10-27-2003, 09:32 AM
Change your ioFTPD.ini:
[ioFTPD]
Encryption_Thread_Count = 1 # Good value for encryption thread count is # of logical processors

Upgrade .exe

bounty
10-27-2003, 10:48 AM
wouldn't be possible to offer a sample of how the latest ioFTPD.ini should looks please ??

because with all these updates & changes i'm lost (and maybe not only me)

would be really appreciate if someone want to keep a file attachment up do date in the 1st post or in another post ;)

very big thx
bounty

(sorry for my crappy english :D )

*edit by Mouton: French translation by Google:
ne serait-il pas possible pour offrir un échantillon de la façon dont le dernier ioFTPD.ini devrait-il des regards satisfaire?? parce qu'avec tous ces mises à jour et changements que je suis perdu (et peut-être non seulement je) serais vraiment apprécie si quelqu'un veulent garder un attachement de dossier vers le haut date dans la 1ère générosité très grande de thx de poteau

Mouton
10-27-2003, 11:09 AM
There.

Still valid for 5.2.14u and 5.2.15r.

Mouton
11-02-2003, 04:22 PM
Upgrade .exe only.

Or get full package if you want to develop scripts (the headers have changed).

Mouton
11-18-2003, 09:20 AM
Update .exe

Optional: Change ioFTPD.ini setting 'Directory_Cache_Max' to 'DirectoryCache_Size'.

Get whole package if you want the new header files (to develop scripts).

Default .ini from 5.3.0r package attached. Still valid for 5.3.9r

ADDiCT
12-27-2003, 02:53 AM
5.3.9 -> 5.4.3:
alot of changes in the ioftpd.ini file so i think it's best to completely reconfigure the default ini file

Gone: [ioFTPD]
New: [Threads] & [File] & [Ftp] & [Telnet]
Change: [Pre] becomes [FTP_Pre-Command_Events]
Change: [Post] becomes [FTP_Post-Command_Events]
Change: [Scripts] becomes [FTP_Custom_Commands]
New: [Telnet_Binaries]
Change: [Ftp-Permissions] becomes [FTP_Command_Permissions]
Change: [Ftp-SITE-Permissions] becomes [FTP_SITE_Permissions]
Change: [Telnet-Permissions] becomes [Telnet_Command_Permissions]
New: [Telnet_Binary_Permissions]
Change: [Http-Permissions] becomes [Http_Permissions]

also some (all?) message files changed, the most questions are asked about this one:
\text\ftp\stat.msg becomes \text\ftp\TransferComplete

Replace those events:

;OnFtpNewDir =
;OnFtpDelDir =
;OnFtpLogIn =

by

;OnNewDir =
;OnDelDir =
;OnLogIn =

and add those two:
;OnServiceStart =
;OnServiceStop =

Note: The new INI shows [Change_Permissions], but you need to change it to [Change-Permissions] for it to work!
If you don't, everyone will be able to use all commands! (Only applies for u version. Newer r versions are fixed.)

Also, make sure Messages = ..\text\ftp is un-commented in your services, as there is no default value anymore.

MastaJ
01-09-2004, 12:56 PM
- Replace .exe

- ioFTPD.ini, under [Threads]

add:
Worker_Fibers = 2-5x # (x = # of Worker_Threads)

delete:
Message_Threads = ...

- ioftpd.env
add:
SYSTEMPATH=%[$path]
VIRTUALPATH=%[$pwd]

Mouton
01-17-2004, 02:56 PM
valid for 5.5.0r to 5.5.6r

Mouton
02-03-2004, 07:16 PM
upgrade .exe

Remove TCL_Interpreters from ioFTPD.ini [Threads] (not needed anymore).
Remove Nagle from ioFTPD.ini [Network] (deprecated).

.ini valid for 5.6.x

wooolF[RM]
02-12-2004, 03:55 PM
1) Remove old tcl84*.dll and ioFTPD.exe from your ioFTPD\system folder.

2) Copy *.dll and ioFTPD.exe from 5.7.x package to your ioFTPD\system directory (do not rename tcl84t.dll).

Changes in ioFTPD\system\ioFTPD.ini:
3) Line 158-159 : under [http] replace lines Transfer_Timeout = 180
Executable = *.exe *.com *.cgi *.php *.php3 *.batby those two: Keep_Alive = 180
Max_Memory_Content = 1024000 # Maximum bytes of GET/PUT/POST/HEAD content to cache in memory

.ini valid for 5.7.x

Mouton
02-19-2004, 01:09 PM
Following steps needed only if you want to use php script on httpd (probably won't need that for a while)...

Replace your ioFTPD\text\http folder by the 5.7.x package ioFTPD\text\http2

You have to download (http://www.php.net/downloads.php) Windows binaries of PHP and install it on same box where your FTP is. All you have to do is:
1) extract archive to C:\php
2) rename php.ini-dist to php.ini
3) place it in your Windows folder

Following steps needed only if you wanna make php scripts for httpd.
4) open that php.ini file that you've just copied to your windows folder
5) search for extension_dir and change it's value/setting to c:\php\extensions
6) save file (dooh) :p

Mouton
02-23-2004, 02:38 PM
- Update ioFTPD.exe
- Update php4ts.dll
- Edit your ioFTPD.ini:
--- Remove Worker_Fibers
--- (optional) Add under [Threads]: WindowName = ioFTPD::MessageWindow
--- Do NOT add anything after the string... spaces or comment...

Note: There is only one ioFTPD.exe process now.

helenoksen
11-12-2005, 03:23 AM
Make this thread sticky please. :)

EwarWoo
11-12-2005, 04:49 AM
Ah, nice, thought this thread had dissapeared completely in the move.
Definately needs to be sticky, highly useful :)

tuff
11-12-2005, 04:53 AM
Replace ioftpd.exe in system folder
Replace php4ts.dll in system folder

(thread stuck)

ACiD
12-26-2005, 05:46 PM
Replace ioftpd.exe in system folder