You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

AWStats Day by Day unavailable on the awstats site

No Tags
UserPost

7:57 am
May 28, 2010


cosminpana

Romania – Bucharest

Member

posts 20

hello,

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:

HTMLHeadSection="<script language=javascript src="/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/js/day-by-day-head.js"></script>"

HTMLEndSection="<script language=javascript src="/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/js/day-by-day-end.js"></script>"

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.

Thank you!

Have a nice day,

Cosmin 

4:16 pm
May 28, 2010


Jean-Luc

Admin

posts 1125

Hi,

Not sure what the problem is. It could be the path to the JavaScript directory. You should specify the path to be used by a web browser i.e.

HTMLHeadSection="<script language=javascript src="/js/day-by-day-head.js"></script>"

HTMLEndSection="<script language=javascript src="/js/day-by-day-end.js"></script>"

Also, note that the AWStats Day by Day add-on is for use with the CGI version of AWStats only. It is not meant for use with the HTML static reports.

Thank you for your feedback anyway. I will add these warnings in the installation page.

If this does not explain why the add-on does not work for you, please give more details about your setup. Thanks.

12:26 pm
June 3, 2010


cosminpana

Romania – Bucharest

Member

posts 20

Hello Jean-Luc,

Sorry for the delay but I was in vacation.

I have made the changes and I will get back to you tomorrow with an answer.

Best regards,

Cosmin

8:57 am
June 4, 2010


cosminpana

Romania – Bucharest

Member

posts 20

Hi Jean-Luc,

I have made the modifications like you stated in the previous post but still nothing appears on my awstats page

HTMLHeadSection="<script language=javascript src="/js/day-by-day-head.js"></script>"

HTMLEndSection="<script language=javascript src="/js/day-by-day-end.js"></script>"

the installation steps were:

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)

Any ideas?

Thank you!

Have a nice day,

Cosmin

9:37 am
June 4, 2010


Jean-Luc

Admin

posts 1125

Cosmin,

Can you send me a private message on this forum or an email ( awstats@internetofficer.com ) with the URL of your AWStats reports ? Thanks.

8:13 am
June 5, 2010


Jean-Luc

Admin

posts 1125

Thank you for your emails. I understand the security reasons why you cannot give access to third parties.

Please look at the source code of the right frame in the report. Do you find the two lines you added ,

- near the top:

<script language=javascript src="/js/day-by-day-head.js"></script>

- near the end:

<script language=javascript src="/js/day-by-day-end.js"></script>

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.

7:22 am
June 7, 2010


cosminpana

Romania – Bucharest

Member

posts 20

Hi Jean-Luc,

The two lines are there.

In the source code the complete ULR for images in the graphics is like this

img src="/icon/other/awstats_logo6.png"

And when I'm accessing the http://your_domain.com/js/day-by-day-head.js  I'm receiving the 404 error.

I assume that there is a problem with the path..for the graphics?

Thanks

8:13 am
June 7, 2010


Jean-Luc

Admin

posts 1125

Hi Cosmin,

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.

9:08 am
June 7, 2010


cosminpana

Romania – Bucharest

Member

posts 20

Hi Jean-Luc,

I have made the modifications and I have restarted Apache.

I will wait for the results.

Thank you,

Cosmin

10:49 am
June 7, 2010


Jean-Luc

Admin

posts 1125

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.

12:22 pm
June 7, 2010


cosminpana

Romania – Bucharest

Member

posts 20

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.

12:48 pm
June 7, 2010


Jean-Luc

Admin

posts 1125

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.

7:16 am
June 8, 2010


cosminpana

Romania – Bucharest

Member

posts 20

Hi Jean-Luc

I tried different folders and still no luck. I tried also with different browsers.

thanks!

9:15 am
June 8, 2010


Jean-Luc

Admin

posts 1125

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:

HTMLHeadSection="<script language=javascript src="http://www.internetofficer.com/js/day-by-day-head.js"></script>"
HTMLEndSection="<script language=javascript src="http://www.internetofficer.com/js/day-by-day-end.js"></script>"

Do you see the Day by Day menu now ?

12:12 pm
June 9, 2010


cosminpana

Romania – Bucharest

Member

posts 20

Hi Jean-Luc,

I have made the changes and the Day by Day menu appeared.

what should be the problem?

Best regards,

Cosmin

1:08 pm
June 9, 2010


Jean-Luc

Admin

posts 1125

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.

1:13 pm
June 9, 2010


cosminpana

Romania – Bucharest

Member

posts 20

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…

1:44 pm
June 9, 2010


Jean-Luc

Admin

posts 1125

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).

11:57 am
June 10, 2010


cosminpana

Romania – Bucharest

Member

posts 20

Hi Jean-Luc,

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.

Thank youv ery much for your support!

Best regards,

Cosmin

8:55 pm
September 23, 2010


Michelle-807

New Member

posts 1

Hello Jean-Luc, 

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. 

MichelleLaugh

No Tags

About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
8 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)