LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Problem with AWStats

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2005, 08:14 AM
Tadeo Tadeo is offline
Member
 
Join Date: Feb 2005
Posts: 15
Default Problem with AWStats

Hello,

I seem to be having a problem accessing an awstats page on one of my virtual hosts. Any attempt to access the page returns a 403 (Forbidden). I have another virtual host with the same awstats settings (except for hostname) that is working perfectly fine. Any suggestions on what I should look for?


Thanks,

Thad
Reply With Quote
  #2  
Old 02-21-2005, 09:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Is awstats in dynamic mode? If so, you need to set "Enable Script" to "Yes" for that virtual host at the page that you can add a virtual host.
Reply With Quote
  #3  
Old 02-21-2005, 11:18 AM
Tadeo Tadeo is offline
Member
 
Join Date: Feb 2005
Posts: 15
Quote:
Originally Posted by mistwang
Is awstats in dynamic mode? If so, you need to set "Enable Script" to "Yes" for that virtual host at the page that you can add a virtual host.
It is in dynamic mode. And enable script is set to yes. (I verified the setting in the configuration file). Any other suggestions that I might try?


Thanks
Reply With Quote
  #4  
Old 02-21-2005, 11:47 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Make sure you looked at the right configuration file, it is in httpd_config.xml, not the virtual host coniguration file.
If that is not the problem, you have to compare the configuration of two virtual host carefully.
Please check "setUIDMode", and make sure the corresponding file/directory is not owned by "root" or other system user. LSWS won't start a CGI script as a privilege user.

If possible, enable debug logging for that virtual host and set "debug level" to "high" at server level.
Reply With Quote
  #5  
Old 02-21-2005, 01:27 PM
Tadeo Tadeo is offline
Member
 
Join Date: Feb 2005
Posts: 15
The following error is returned in the error log:
2005-02-21 13:01:46.226 [INFO] [] Access denied, UID or GID is smaller than minimum UID, GID configured.

setUIDMode is 0 (False)
Reply With Quote
  #6  
Old 02-21-2005, 06:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Awstats CGI always run in setuid mode, as the owner of the document root. Change the owner of the document root to a normal user, it will work properly. :-)
Reply With Quote
  #7  
Old 02-21-2005, 07:47 PM
Da-Idiot Da-Idiot is offline
Member
 
Join Date: Jan 2005
Posts: 23
This is a new problem, but irelates to a problem with awstats. Since this post is from today i figured i would post here.

I cannot get the awstats to update with pages in my awstats directory.

I have it set to static so it will generate static pages. When i try to go to the awstats page i get the 404 not found error.

I have checked in the awstats directory that i set for the virtual host but it is not creating any files.

I have run the awstats install script that comes with lsws. What am i missing here.

Please let me know whatever other info you need.

Thanx
Reply With Quote
  #8  
Old 02-22-2005, 05:07 AM
Tadeo Tadeo is offline
Member
 
Join Date: Feb 2005
Posts: 15
Quote:
Originally Posted by mistwang
Awstats CGI always run in setuid mode, as the owner of the document root. Change the owner of the document root to a normal user, it will work properly. :-)
I think I solved the problem. It appears that it was the group that the doc root was assigned to that kept it from working. I first changed the owner of the doc root with no success; then I changed the group it belong to ans it started to work again.

Thanks for your assistance.
Reply With Quote
  #9  
Old 02-22-2005, 07:26 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Quote:
Originally Posted by Da-Idiot
This is a new problem, but irelates to a problem with awstats. Since this post is from today i figured i would post here.

I cannot get the awstats to update with pages in my awstats directory.

I have it set to static so it will generate static pages. When i try to go to the awstats page i get the 404 not found error.

I have checked in the awstats directory that i set for the virtual host but it is not creating any files.

I have run the awstats install script that comes with lsws. What am i missing here.
Check your lsws/logs/stderr.log, I think the log format is not configured properly, with the default awstats log format, you have to enable "UserAgent" and "Referrer" logging in lsws's access log configuration, otherwise you need to customize awstats' log format configuration.
Also, make sure the permission of awstats working directory is set properly.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
awstats config problem on LS v3.1.1 Simply Install/Configuration 3 07-18-2007 02:52 PM
problem with awstats in 2.1.7? ts77 Bug Reports 5 12-20-2005 10:27 AM
.htaccess problem xinn Install/Configuration 1 12-07-2005 12:01 PM
AWstats are not secured by password SyNeo Install/Configuration 5 11-16-2005 11:07 AM
installing awstats ! stefan Install/Configuration 1 06-08-2004 03:45 AM


All times are GMT -7. The time now is 03:54 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.