1.
vi /etc/proftpd.conf
>>修改proftp.conf,加入,下面三行
- 代碼: 選擇全部
LogFormat awstats "%t %h %u %m %f %s %b"
ExtendedLog /var/log/xferlog read,write awstats
TransferLog none
2.
# /etc/init.d/proftpd restart
>>重新啟動proftpd
# rm -f /var/log/xferlog
>>刪除原先舊有的紀錄檔,新的記錄檔應該者的像這樣
- 代碼: 選擇全部
[19/Feb/2005:18:44:46 +0800] 134-208-30-252.ndhu.edu.tw marxpan RETR /home/ftp/welcome.msg 226 166
3.
vi awstats.ftp.conf <-- For proftpd
- 代碼: 選擇全部
LogFile="/var/log/xferlog"
LogType=F
LogFormat="%time1 %host %logname %method %url %code %bytesd"
LogSeparator="\t"
NotPageList=""
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
ShowLinksOnUrl=0
ShowMenu=1
ShowMonthStats=UVHB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=HB
ShowHostsStats=HBL
ShowAuthenticatedUsers=HBL
ShowRobotsStats=0
ShowEMailSenders=0
ShowEMailReceivers=0
ShowSessionsStats=1
ShowPagesStats=PBEX
ShowFileTypesStats=HB
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=0
4.
./awstats --conf=bludebser.proftpd --update
- 代碼: 選擇全部
Update for config "./awstats.bludebser.proftpd.conf"
With data in log file "/var/log/xferlog"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Jumped lines in file: 0
Parsed lines in file: 13
Found 0 dropped records,
Found 13 corrupted records,
Found 0 old records,
Found 0 new qualified records.
以上過程都是按官方的手冊安裝的,但進入後,卻沒log的資料
URL: http://bludebser.homelinux.org/cgi-bin/awstats/awstats.pl?config=bludebser.proftpd
請有試成功過的大大給點指點,謝謝