WebGUI
      Click here to register.
      
PBWG Banner


     Report a Bug > WebGUI Bug Tracker

awstats errors in wre-sles-10-sp1-ia32.tar.gz

User lunap2
Date 11/1/2007 1:55 pm
Severity Minor (annoying, but not harmful)
Version WRE 0.8.0
Views 273
Rating 4    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
lunap2

I downloaded and installed  wre-sles-10-sp1-ia32.tar.gz  If I did not enable Web Statistics (Awstats) everything worked fine.  Once I enable Web Statistics via the wreconsole, mod_proxy would fail to start.  I then did via command line to track the problem.

wreservice.pl --restart all
Restart MySQL:        OK
Restart mod_perl:     OK
Restart mod_proxy:    Syntax error on line 2 of /data/wre/etc/stats.modproxy:
ServerName takes one argument, The hostname and port of the server
FAILED!
Restart S.P.E.C.T.R.E.:Unable to connect to 127.0.0.1:32133: Connection refused
OK....


looking at /data/wre/etc/stats.modproxy, appears the wreconsole did not include the hostname I entered in the wreconsole :
<VirtualHost *:80>
ServerName
DocumentRoot  /data/domains/prereqs/wwwroot
DirectoryIndex awstats.pl
</VirtualHost>

I added servername and changed DocumentRoot to /data/wre/prereqs/wwwroot/cgi-bin since /data/domains/prereqs/wwwroot does not exist.   the awstats.pl file is located in /data/wre/prereqs/wwwroot/cgi-bin  

 

then error on browser when try to access webstats:
_______
Error: Couldn't open config file "awstats.webstats.grasshopper.ieee.org.conf" nor "awstats.conf" after searching in path "/data/wre/prereqs/wwwroot/cgi-bin,/etc/awstats,/usr/local/etc/awstats,/etc,/etc/opt/awstats": No such file or directory

- Did you use the correct URL ?
Example: http://localhost/awstats/awstats.pl?config=mysite
Example: http://127.0.0.1/cgi-bin/awstats.pl?config=mysite
- Did you create your config file 'awstats.webstats.grasshopper.ieee.org.conf' ?
If not, you can run "awstats_configure.pl" from command line, or create it manually.Check config file, permissions and AWStats documentation (in 'docs' directory).
_______


cp /data/wre/etc/awstats.grasshopper.ieee.org.conf   to /data/wre/etc/awstats.webstats.grasshopper.ieee.org.conf

Then modified /data/wre/prereqs/wwwroot/cgi-bin/awstats.pl line 1146 to include"/data/wre/etc", as follows:

 else { @PossibleConfigDir=("$DIR","/data/wre/etc","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); }


The crontab instructions do not include the entry for awstats:
/data/wre/prereqs/tools/awstats_updateall.pl now -awstatsprog=/data/wre/prereqs/wwwroot/cgi-bin/awstats.pl -configdir=/data/wre/etc

I run this manually to get some stats

 

I get some errors in the /data/wre/var/logs/modproxy.error.log that
/data/wre/prereqs/wwwroot/cgi-bin/icon does not exist.  the icon dir is actually in /data/wre/prereqs/wwwroot/

fixed this with:
cd /data/wre/prereqs/wwwroot/cgi-bin
ln -s ../icon icon

 

By the way, thank you very much for the Suse package!!!  :-)



Back to Top
Rate [
|
]
 
 
JT
This is a bug in all 0.8.0 versions, and is fixed in 0.8.1

Back to Top
Rate [
|
]
 
 
lunap2

Thank you!  Is WRE 0.8.1 available?  I don't see any reference to it in the webgui or plainblack websites.  The download at sourceforge only has the 0.8.0.  Does running /data/wre/sbin/webguiupdate.pl also update the wre ?

 



Back to Top
Rate [
|
]
 
 
Graham
WRE 0.8.1 has not yet been released.

Back to Top
Rate [
|
]