Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
awstats - gives "not found"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trondert
Apprentice
Apprentice


Joined: 07 Aug 2005
Posts: 178
Location: Norway

PostPosted: Thu Dec 21, 2006 10:05 pm    Post subject: awstats - gives "not found" Reply with quote

Several months ago, my awstats page stoped working, and just gave me this msg:
Quote:
Not Found

The requested URL /awstats/awstats.pl was not found on this server.


Not sure during what update, but i havent had the time to look at it before, and now i cant seem to figure it out....
Tried to follow one of the how-to's, but no luck.

It seems to update fine when i tell it too(Apache doubles the entries in 2 formats, so half is corrupt, and halfs ok, if i remember corectly...)

Code:
media trondert # /usr/share/webapps/awstats/6.5/hostroot/cgi-bin/awstats.pl -config=overmoen.no-ip.info -update
Update for config "/etc/awstats/awstats.overmoen.no-ip.info.conf"
With data in log file "/var/log/apache2/access_log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 2436)
Jumped lines in file: 2436
 Found 2436 already parsed records.
Parsed lines in file: 2316
 Found 0 dropped records,
 Found 1158 corrupted records,
 Found 0 old records,
 Found 1158 new qualified records.
media trondert #               


So gues its the display part thats broken somewhere, but where.....

thankfull for any help or pointers :)


Last edited by trondert on Fri Dec 22, 2006 11:46 am; edited 1 time in total
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Dec 21, 2006 11:13 pm    Post subject: Reply with quote

You need to look at /usr/share/webapps/awstats/6.5/postinst-en.txt to add the privileges you need into Apache. I'd pull the top 20 lines or so and drop them in the vhost you want awstats to work inside.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
trondert
Apprentice
Apprentice


Joined: 07 Aug 2005
Posts: 178
Location: Norway

PostPosted: Fri Dec 22, 2006 8:01 am    Post subject: Reply with quote

Already have these lines in there, if its the right there that is....

oh, and it was 6.5-r1, and the update for that gives same as for 6.5.

Code:
/share/webapps/awstats/6.5-r1/postinst-en.txt

Quote:
Alias /awstats/classes "/usr/share/webapps/awstats/6.5-r1/htdocs/classes/"
Alias /awstats/css "/usr/share/webapps/awstats/6.5-r1/htdocs/css/"
Alias /awstats/icons "/usr/share/webapps/awstats/6.5-r1/htdocs/icon/"
ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/"
ScriptAlias /awstats "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
ScriptAlias /awstats.pl "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"

<Directory "/usr/share/webapps/awstats/6.5-r1/htdocs">
Options None
AllowOverride None
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>

<Directory "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin">
Options ExecCGI
AllowOverride None
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri Dec 22, 2006 8:34 am    Post subject: Reply with quote

Hmmm I'd look into your apache logs and see if it says anything interesting. I'd also chown those directories to the Apache user and see if that helps.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
trondert
Apprentice
Apprentice


Joined: 07 Aug 2005
Posts: 178
Location: Norway

PostPosted: Fri Dec 22, 2006 8:51 am    Post subject: Reply with quote

Code:
/var/log/apache2/error_log

Quote:
[Thu Dec 21 10:55:21 2006] [error] [client 85.166.198.198] File does not exist: /var/www/localhost/htdocs/awstats/awstats.pl
sendmail: Cannot open mail:25
[Thu Dec 21 22:52:13 2006] [error] [client 85.166.198.198] File does not exist: /var/www/localhost/htdocs/awstats/awstats.pl
[Fri Dec 22 08:55:04 2006] [error] [client 85.166.198.198] File does not exist: /var/www/localhost/htdocs/awstats/awstats.pl




Code:
/var/www/localhost/htdocs/awstats/


Is there supposed to be a file there, or just a symlink to the awstats catalog?

And what dir would you chown to apache2?

thx for the help so far.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum