awstats error



Status
Not open for further replies.

GriyaHosting

Expert 1.0
Dear,
Apakah ada teman2 yang pernah mengalami awstats error tiba2 tidak dapat mencatat stats user ?
Saya cek di tweak setting WHM aktif, tetapi saya mendapatkan error log sebagai berikut :


AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log.
Your log file /usr/local/apache/domlogs/xxx.com must have a bad format or LogFormat parameter setup does not match this format.

Your AWStats LogFormat parameter is: 1
This means each line in your web server log file need to have "combined log format" like this:
111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"

And this is an example of records AWStats found in your log file (the record number 50 in your log):
combined


Setup ('/home/xxx/tmp/awstats/awstats.xxx.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).


Mohon solusinya teman2 :)

Salam,
 

izhoeld

Beginner 2.0
oh udin di coba .. :D
ya maklum boss .. saya cuma modal mbah gogel
btw .. udah nemu boss cara benerin nya ?
share dunk
 

indonix

Poster 2.0
Gampang bos di httpd.conf nya cari variable tulisan CustomLog logs/acess_log combined

nah yang common di ganti jadi combined!
 

GriyaHosting

Expert 1.0
FIX :

Conf lama :
vi /usr/local/apache/conf/httpd.conf

dari :
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

CustomLog logs/access_log combined


<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

</IfModule>

</IfModule>

saya ganti tambahkan dan ganti menjadi :
#<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent


CustomLog logs/access_log combined

<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

</IfModule>

#</IfModule>

restart Apache -
/etc/init.d/httpd restart

Update Conf -
/usr/local/cpanel/bin/apache_conf_distiller --update


FIX ... Thanks For All

Salam,
 
Status
Not open for further replies.

Top