I have installed awstats on Solaris Unix. The version of awstats is 6.95.
I have encountered a small problem maybe you can help me in solving it.
When i'm trying to update Awstats statics from the browser i'm receiving this error. Also i have encountered this when i'm trying to update it with the command:
awstats.pl -config=mysite -update
Before i had another similar error but instead of the .png was a gif extension.
I modified the Log format in awstats conf like this and after this modification i have received the error with the .png.
The Windchill and awstats are installed on a Solaris machine. I have deleted the access_log file from Apache and restarted it. The permissions for awstats.mysite.comf are set.
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 /d01/opt/ptc/Windchill_9.0/Apache/logs/access_log must have a bad format or LogFormat parameter setup does not match this format.
Your AWStats LogFormat parameter is: %host %other %logname %time2 %methodurl %code %bytesd %other %other %other %other %other %refererquot This means each line in your web server log file need to have the following personalized log format: %host %other %logname %time2 %methodurl %code %bytesd %other %other %other %other %other %refererquot
And this is an example of records AWStats found in your log file (the record number 50 in your log): Setup ('/etc/awstats/awstats.first.ptc.com.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).
I am not sure about all these %other fields at the end of your LogFormat. this does not exactly match your example, but this could be coming from a partially missed copy-and-paste.
This is controlled by the path defined in DirIcons in the AWStats config file. Note that the path here is the path in the web site (not the Linux path).
I have consulted the awstats help pdf manual, i have made some modifications but still without any effect.
This is the section from my awstats config file related to icon. Also the icon folder resides in /d01/opt/ptc/Windchill_9.0/awstats/wwwroot/icon. I tried to add directly this path.
# Relative or absolute web URL of your awstats icon directory. # If you build static reports ("… -output > outputpath/output.html"), enter # path of icon directory relative to the output directory 'outputpath'. # Example: "/awstatsicons" # Example: "../icon" # Default: "/icon" (means you must copy icon directories in "/mywwwroot/icon") # DirIcons="/icon"
And below is the configuration from httpd.conf file of Apache:
# # Directives to allow use of AWStats as a CGI # Alias /awstatsclasses "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/classes/" Alias /awstatscss "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/css/" Alias /icon "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/icon/" Alias /traffic "/d01/opt/ptc/Windchill_9.0/awstats/reports"
Alias /awstatsicon "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/icon/" Alias /pathtotools "/d01/opt/ptc/Windchill_9.0/awstats/tools/"
# # This is to permit URL access to scripts/files in AWStats directory. # <Directory "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot"> Options None AllowOverride None Order allow,deny Allow from all </Directory>
Right-click one of the icons in the report and select properties. This will show you where awstats.pl expects to find the icon according to your settings.
I have managed to solve the problem since Friday night before the end of my work hours. Sorry for the late response from me but i was out for the weekend.
It seems that a restart of the server did the job. I don't know why, but first i had restarted Apache and still the icons weren't there and after that i restarted the server for maintenance pourposes and it did the trick.