| User | Post |
|
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 220 |
|
|
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.
Jean-Luc
|
|
|
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 220 |
|
|
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.
Jean-Luc
|
|
|
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 220 |
|
|
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.
Jean-Luc
|
|
|
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/awstats.pl -update -config=MYDOMAIN -LogFile=/usr/local/logs/MYDOMAIN-access_log > /dev/null 2> /dev/null
buildHTML :
perl /www/awstats/tools/awstats_buildstaticpages.pl -dir=/www/stat/MYDOMAIN/ -config=MYDOMAIN -awstatsprog=/www/awstats/wwwroot/cgi-bin/awstats.pl
Please help me
//Michael
|
|
|
4:51 pm September 21, 2007
| Jean-Luc
Admin
| | | |
|
| posts 220 |
|
|
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
Jean-Luc
|
|
|
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 220 |
|
|
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://www.your_site.com/cgi-bin/awstats.pl?config=your_site.com
This should work if your host accepts that you run Perl scripts.
Jean-luc
|
|
|
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://MYDOMAIN/cgi-bin/awstats.pl?config=MYDOMAIN
The page Not Found
|
|
|
5:41 pm September 21, 2007
| Jean-Luc
Admin
| | | |
|
| posts 220 |
|
|
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 !
Jean-Luc
|
|
|
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.
|
|