I have installed awstats day by day like mentioned on the AWStats Day by Day Installation Page. but I don't have the header and the data available on my awstats site.
I added the lines below to my awstats config file:
also i have tried the option in another js folder like awstatsjs and changed the path but still no success.
My webserver is on a Solaris machine, i have given all the rights to the files and it has passed a day so I assume that some data must have been colected.
downloaded the 2 files, uploaded were my awstats installation resides in the js folder that i have created, and then I modified my awstats site config file by adding HTMLHeadSection and HTMEndSection.
my awstats version is Advanced Web Statistics 6.95 (build 1.943)
In the source code, what is the complete URL for images in the graphics (something ending with other/vh.png ) ?
If you enter http://your_domain.com/js/day-by-day-head.js in the address bar of your browser, do you get a 404 error of is the browser trying to read or download the JavaScript file ?
I hope that this will help us find out what happens.
The 404 error means that the two JavaScript files are not where they are supposed to be. Please check that they are in /d01/opt/ptc/Windchill_9.0/awstats/wwwroot/js/ as stated in your first post above.
There was no need to restart Apache if you just copied both JavaScript files to another directory. The Day by Day menu should immediately appear when you refresh the right frame in the browser.
hte day by day menu didn't appear and when I'm entering http://my_domain.com/js/day-by-day-head.js in the address bar of the browser i still have the 404 error.
You can basically place the two scripts in any directory that is reachable from your browser. For test purpose, I suggest that you place them in the root directory of the domain or in the icon directory of AWstats. Of course, you need to edit HTMLHeadSection and HTMLEndSection accordingly. As soon as you find a place where you do not get the 404 error anymore, the menu will appear in your AWStats reports.
I copied the two files on this InternetOfficer server in the /js directory of this web site. Just copy the following lines at the and of your AWStats config file:
The problem is that you did not copy the files in the appropriate directory on your stats server. From here, it is very hard (say impossible) to know exactly where you have to copy them. Your system administrator should know where you have to place the two files.
I will leave the files on my server for a while, but, someday, I may remove them.
I copied the files in my awstats installation folder, I copied them in the /d01/opt/ptc/Windchill_9.0/awstats/wwwroot/js/day-by-day-end.js" also …I created also a folder js under the awstats root…but still no chance..in the installation document is stated that it can be placed anywhere if you put the path in the awstats config file…
You may put the files anywhere as long as they are reachable from the web. If you put them under the same directory as awstats.pl, it could be that, under Apache, this directory and its subdirectories are only setup for scripts and not for other files. Your system administrator should tell you where you can copy the files.
Check also the files read permissions (should be 644).
I have moved the two files on a server where the IIS was installed and I'm referencing that server now in my awstats config file. The menu has appeared.
I too, had the same problem as Cosmin. According to my httpd.conf file my web root is /usr/local/awstats/wwwroot – makes sense. Only – I couldn't not get the day by day files to work for me anywhere. So – I went to the http://www.thisismysite.com and my index.html page that I put hello on, popped up. So I put the js folder and the day by day files under /var/www/html and it worked. Thank you so very much for this code – it's wonderful! I had set it up to use the day by day code that you had in here from before – where my client had to put in the month day and year for each day they wanted to see – I appreciate the work you did.Â