Hi,
Today i've been trying to put this working. It seems to be fine, i just don't know what to do to execute the 'webalizer.php' (that will update the stats...)
what i did:
on httpd-vhosts.conf i put:
"<VirtualHost *:80>
DocumentRoot "D:\.........\domains\~hcserver\public_html"
ServerName ...
ServerAlias ...
ServerAdmin admin@....
Alias /stats "D:/....../domains/~hcserver/webalizer/"
LogFormat "%h %l %u %t \"%r\" %>s %b" common
ErrorLog "D:/....../domains/~hcserver/logs/error.log"
CustomLog "D:/..../domains/~hcserver/logs/web.log" common
</VirtualHost>" (and others)
folder ...\domains is like this:
+ ~domain name
++ public_html
++ public_ftp
++ webalizer
++ logs
+ ~hcserver
++ public_html
++ public_ftp
++ webalizer
++ logs
(...)
The logs work perfectly
The problem is "updating" the webalizer stats...
inside logs will be: error.log and web.log
inside webalizer will be:
ctry_usage ... daily_usage... *.hist ... hourly_usage ... index .... url_200812 .... usage ... usage_200812
and in webalizer folder \webalizer are the "normal" files.. the batch.. the .exe ...
then i edited the webalizer.bat:
@echo off
webalizer.exe -c server_webalizer.conf
for %%i in ("domain_*.conf") DO webalizer.exe -c %%i
so, it would open every domain .conf
i created then, the domain_domainname.conf files with:
OutputDir D:/hcserver/domains/~hcserver/webalizer/
LogFile D:/hcserver/domains/~hcserver/logs/web.log
HistoryName D:/hcserver/domains/~hcserver/webalizer/hcserver.ath.cx.hist
Incremental No
IncrementalName D:/hcserver/domains/~hcserver/webalizer/hcserver.ath.cx.current
HostName hcserver.ath.cx
PageType htm*
PageType cgi
DNSChildren 10
Quiet Yes
DailyGraph Yes
DailyStats Yes
HourlyGraph Yes
HourlyStats Yes
TopReferrers 30
AllReferrers yes
AllSites no
AllURLs yes
AllAgents no
AllSearchStr no
AllUsers no
It works perfecly if i open in CMD the webalizer.bat file....
but i know the webalizer.php opens that .bat file too...
So, what you think would be the best way to execute that php to "update" the stats (because it's on a diffent folder)?