|
Date: 11/1/2007 1:55 pm · Subject: awstats errors in wre-sles-10-sp1-ia32.tar.gz · Rating: 4
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!!! :-)
|