AWSTATS All-Stats

Thanks for editing is a hard one this :)

[root@server02 patrick.fm]# chown kicken:kicken /home/kicken/domains/patrick.fm/stats
[root@server02 patrick.fm]# cd awstats
[root@server02 awstats]# rm -f .htaccess awstats.pl .data/awstats.patrick.fm.conf
[root@server02 awstats]# cd /usr/local/directadmin/scripts/
[root@server02 scripts]# ./awstats_process.sh kicken patrick.fm
Launch update process : "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -update -configdir=/home/kicken/domains/patrick.fm/awstats/.data
Build main page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output
Build alldomains page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=alldomains
Build allhosts page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=allhosts
Build lasthosts page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=lasthosts
Build unknownip page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=unknownip
Build allrobots page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=allrobots
Build lastrobots page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=lastrobots
Build session page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=session
Build urldetail page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=urldetail
Build urlentry page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=urlentry
Build urlexit page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=urlexit
Build osdetail page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=osdetail
Build unknownos page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=unknownos
Build browserdetail page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=browserdetail
Build unknownbrowser page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=unknownbrowser
Build refererse page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=refererse
Build refererpages page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=refererpages
Build keyphrases page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=keyphrases
Build keywords page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=keywords
Build errors404 page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=patrick.fm -staticlinks=patrick.fm.1205 -diricons=icon -configdir=/home/kicken/domains/patrick.fm/awstats/.data -output=errors404
20 files built.
Main HTML page is 'awstats.patrick.fm.1205.html'.
[root@server02 scripts]#

And the result :) a 500 internal error :) on by surfing to the stats page.
with php.ini this has nothing todo i gues?
 
[kicken@server02 awstats]$ ./awstats.pl
----- awstats 6.95 (build 1.943) (c) 2000-2009 Laurent Destailleur -----
AWStats is a free web server logfile analyzer to show you advanced web
statistics.
AWStats comes with ABSOLUTELY NO WARRANTY. It's a free software distributed
with a GNU General Public License (See LICENSE file for details).

Syntax: awstats.pl -config=virtualhostname [options]

This runs awstats in command line to update statistics (-update option) of a
web site, from the log file defined in AWStats config file, or build a HTML
report (-output option).
First, awstats tries to read awstats.virtualhostname.conf as the config file.
If not found, awstats tries to read awstats.conf
Note 1: Config files (awstats.virtualhostname.conf or awstats.conf) must be
in /etc/awstats, /usr/local/etc/awstats, /etc or same directory than
awstats.pl script file.
Note 2: If AWSTATS_FORCE_CONFIG environment variable is defined, AWStats will
use it as the "config" value, whatever is the value on command line or URL.
See AWStats documentation for all setup instrutions.

Options to update statistics:
-update to update statistics (default)
-showsteps to add benchmark information every 8192 lines processed
-showcorrupted to add output for each corrupted lines found, with reason
-showdropped to add output for each dropped lines found, with reason
-showunknownorigin to output referer when it can't be parsed
-showdirectorigin to output log line when origin is a direct access
-updatefor=n to stop the update process after parsing n lines
-LogFile=x to change log to analyze whatever is 'LogFile' in config file
Be care to process log files in chronological order when updating statistics.

Options to show statistics:
-output to output main HTML report (no update made except with -update)
-output=x to output other report pages where x is:
alldomains to build page of all domains/countries
allhosts to build page of all hosts
lasthosts to build page of last hits for hosts
unknownip to build page of all unresolved IP
allemails to build page of all email senders (maillog)
lastemails to build page of last email senders (maillog)
allemailr to build page of all email receivers (maillog)
lastemailr to build page of last email receivers (maillog)
alllogins to build page of all logins used
lastlogins to build page of last hits for logins
allrobots to build page of all robots/spider visits
lastrobots to build page of last hits for robots
urldetail to list most often viewed pages
urldetail:filter to list most often viewed pages matching filter
urlentry to list entry pages
urlentry:filter to list entry pages matching filter
urlexit to list exit pages
urlexit:filter to list exit pages matching filter
osdetail to build page with os detailed versions
browserdetail to build page with browsers detailed versions
unknownbrowser to list 'User Agents' with unknown browser
unknownos to list 'User Agents' with unknown OS
refererse to build page of all refering search engines
refererpages to build page of all refering pages
keyphrases to list all keyphrases used on search engines
keywords to list all keywords used on search engines
errors404 to list 'Referers' for 404 errors
allextraX to build page of all values for ExtraSection X
-staticlinks to have static links in HTML report page
-staticlinksext=xxx to have static links with .xxx extension instead of .html
-lang=LL to output a HTML report in language LL (en,de,es,fr,it,nl,...)
-month=MM to output a HTML report for an old month MM
-year=YYYY to output a HTML report for an old year YYYY
Those 'date' options doesn't allow you to process old log file. They only
allow you to see a past report for a chosen month/year period instead of
current month/year.

Other options:
-debug=X to add debug informations lesser than level X (speed reduced)

Now supports/detects:
Web/Ftp/Mail/streaming server log analyzis (and load balanced log files)
Reverse DNS lookup (IPv4 and IPv6) and GeoIP lookup
Number of visits, number of unique visitors
Visits duration and list of last visits
Authenticated users
Days of week and rush hours
Hosts list and unresolved IP addresses list
Most viewed, entry and exit pages
Files type and Web compression (mod_gzip, mod_deflate stats)
Screen size
Ratio of Browsers with support of: Java, Flash, RealG2 reader,
Quicktime reader, WMA reader, PDF reader
Configurable personalized reports
274 domains/countries
642 robots
5 worm's families
71 operating systems
208 browsers (592 with phone browsers database)
228 search engines (and keyphrases/keywords used from them)
All HTTP errors with last referrer
Report by day/month/year
Dynamic or static HTML or XHTML reports, static PDF reports
Indexed text or XML monthly database
And a lot of other advanced features and options...
New versions and FAQ at http://awstats.sourceforge.net
[kicken@server02 awstats]$
no error
 
mmmmmmh very strange... have no more idea..

last try:

Code:
cd /home
rm -f */domains/*/awstats/.htaccess
rm -f */domains/*/awstats/awstats.pl
rm -f */domains/*/awstats/.data/awstats.*.conf
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d200

By the way, just this domain got this error?


Regards
 
Test it on other domain same error could it because of mod_ruid2 running ? That it dont work anymore ?
Thansk for the help and the time spending solved the problem. Its a hard one this :)
 
No isnt mod_ruid2, at least i think (have you correctly configured virtual_host2 in template? Cause i use mod_ruid2 aswell and awstats is working nice..

try paste result for:

Code:
cat /usr/local/directadmin/data/users/kicken/httpd.conf

Regards
 
<VirtualHost 89.30.138.81:80 >


ServerName www.patrick.fm
ServerAlias www.patrick.fm patrick.fm
ServerAdmin [email protected]
DocumentRoot /home/kicken/domains/patrick.fm/public_html
ScriptAlias /cgi-bin/ /home/kicken/domains/patrick.fm/public_html/cgi-bin/

UseCanonicalName OFF

<IfModule !mod_ruid2.c>
# SuexecUserGroup kicken kicken
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid kicken kicken
RGroups apache
</IfModule>

CustomLog /var/log/httpd/domains/patrick.fm.bytes bytes
CustomLog /var/log/httpd/domains/patrick.fm.log combined
ErrorLog /var/log/httpd/domains/patrick.fm.error.log



<Directory /home/kicken/domains/patrick.fm/public_html>
Options +Includes -Indexes



php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'



</Directory>
 
<VirtualHost 89.30.138.81:80 >


ServerName www.patrick.fm
ServerAlias www.patrick.fm patrick.fm
ServerAdmin [email protected]
DocumentRoot /home/kicken/domains/patrick.fm/public_html
ScriptAlias /cgi-bin/ /home/kicken/domains/patrick.fm/public_html/cgi-bin/

UseCanonicalName OFF

<IfModule !mod_ruid2.c>
# SuexecUserGroup kicken kicken
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid kicken kicken
RGroups apache access
</IfModule>

CustomLog /var/log/httpd/domains/patrick.fm.bytes bytes
CustomLog /var/log/httpd/domains/patrick.fm.log combined
ErrorLog /var/log/httpd/domains/patrick.fm.error.log



<Directory /home/kicken/domains/patrick.fm/public_html>
Options +Includes -Indexes



php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'



</Directory>



</VirtualHost>
Have this get this
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2 Server at patrick.fm Port 80
 
Back
Top