Current User: Guest Login
Please consider registering


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

statistic page layout

Reply to Post Add a New Topic
UserPost

10:40 am
September 7, 2007


guest

Guest

Hello,

 I'm 'playing' with awstats during the last 2 days, reading docs, building stats, …

I saw on the awstats demo that the "menu" is on the left of the page, but as results on my computer I get menu on the top of the page.

How can I do to present the page as displayed in the demo ? 

 

Thx for your help 

10:58 am
September 7, 2007


Jean-Luc

Admin

posts 1125

Hi,

If you access the reports through the awstats.pl  application, you get the menu in a frame at the left side. If you create "static" reports (report_name.html), the menu is at the top and there is no drop down menu to go from one month to another.

11:27 am
September 7, 2007


guest

Guest

Thanks,

 As you said, I can now see the drop down list for months but the menu is still on the top

Any idea ? 

Something special in the config ? 

11:37 am
September 7, 2007


Jean-Luc

Admin

posts 1125

You need to set the UseFramesWhenCGI option in the AWStats config file:

UseFramesWhenCGI=1

It is the default value, but maybe someone changed it in your setup.

12:11 pm
September 7, 2007


guest

Guest

I'm really sorry but this is done : UseFramesWhenCGI=1

I'm using the 6.7 version. Is it the reason ? 

12:34 pm
September 7, 2007


Jean-Luc

Admin

posts 1125

This option works in 6.7 too.

You mean that there are no frames in your CGI pages although the option is set ?

Please make sure there is only one occurence of UseFramesWhenCGI  in the AWStats config file.

10:19 am
September 10, 2007


guest

Guest

Yes, I looked into the generated html pages, and there is no frames.

 I activate the debug an dlooking into the perl script.

This line of code : 

if ($ENV{'GATEWAY_INTERFACE'} && $UseFramesWhenCGI && $HTMLOutput{'main'} && ! $PluginMode)

ENV{'GATEWAY_INTERFACE'} =
UseFramesWhenCGI =1
FrameName =
HTMLOutput-main =1
PluginMode-main =

After this line, $FrameName is set to main.

Is it normal ? I'm not sure.

Thks for your help. 

4:19 pm
September 21, 2007


Michael

Guest

Hey Jean-Luc.

Can you write to me, how i get the menu to the left side, the UseFramesWhenCGI is set to 1, but how i generate the pages, so it get the menu to left side. ??

I drive this 2 line from my unix :

buildStat :

perl /www/awstats/wwwroot/cgi-bin/awsta
ts.pl -update -config=MYDOMAIN -LogFile
=/usr/local/logs/MYDOMAIN-access_log >
/dev/null 2> /dev/null

buildHTML :

perl /www/awstats/tools/awstats_buildst
aticpages.pl  -dir=/www/stat/MYDOMAIN/
-config=MYDOMAIN  -awstatsprog=/www/aws
tats/wwwroot/cgi-bin/awstats.pl

Please help me

//Michael

4:51 pm
September 21, 2007


Jean-Luc

Admin

posts 1125

The problem is that you generate reports as static HTML pages. You can only view the menu at the left side when you use AWStats as a CGI.

It means that awstats.pl must be available from your browser and that you have to enter a URL like the following in the address bar :

http://www.your_site.com/cgi-bin/awstats.pl?config=your_site.com

4:54 pm
September 21, 2007


Michael

Guest

But, how i do that. should i make the build line to another or. ??? Sorry, but i have no more ide, to what i have to do.

5:06 pm
September 21, 2007


Jean-Luc

Admin

posts 1125

You have to update (= build) the stats as you already do with :

perl /www/awstats/wwwroot/cgi-bin/awstats.pl -update …

There is no need to use awstats_buildstaticpages.pl .

When the stats have been updated, you should be able to view them with :

http:/<:em>/ww<:em>w.your_site.com/cgi-bin/awstats.pl?config=your_site.com

This should work if your host accepts that you run Perl scripts.

5:21 pm
September 21, 2007


Michael

Guest

The server accepts me to run Perl scripts, i drive with my own unix server freebsd.

When i try this :

perl /www/awstats/wwwroot/cgi-bin/awstats.pl -update -config=MYDOMAIN -LogFile=/usr/local/logs/MYDOMAIN-access_log > /dev/null 2> /dev/null

But when i try http:/<:em>/MYDOMAIN/cgi-bin/awstats.pl?config=MYDOMAIN

The page Not Found

5:41 pm
September 21, 2007


Jean-Luc

Admin

posts 1125

Depending on your web server and on its configuration, you need to:

- make sure the web server is configured to run Perl scripts from the browser

- know which directories should be used for that (it is usually cgi-bin but it could be different)

- check what the path in the URL must be (web servers allow you to remap the path of some directories; this is called “alias” by Apache)

When this is done, it will work like a charm !

6:38 pm
September 21, 2007


Michael

Guest

Okay, i will try that.

 

Thanks for you you time and help .-)

9:53 am
September 23, 2007


Michael

Guest

Hey Jean-Luc.

I can not get the link to work, it say hole time "page not found"  i have try all now.

 

//Michael

6:57 pm
September 27, 2007


slick-willy

Guest

Michael said:

<snip>

But when i try http://MYDOMAIN/cgi-bin/awstats.pl?config=MYDOMAIN

The page Not Found


Try this:

http://MYDOMAIN.COM/awstats/wwwroot/cgi-bin/awstats.pl

?config=MYDOMAIN

 All one line, of course. I had to break it for it to all show in the comment window.

 

4:16 am
December 18, 2009


Per

Guest

It is possible to get the drop down menu, where you can select period, at the top of the generated static pages by patching AWStats.

Please refer to Installing Mulitple-Month Patch for AWStats for more information.

Reply to Post

Reply to Topic:
statistic page layout

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 6
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
15 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 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)