让AWStats在Ubuntu 12.04中工作

我是新来的Apache,我试图在我的Ubuntu 12.04服务器上设置AWStats。 我在Ubuntu文档中遵循了指南 。

我根据说明进行设置,awstats能够成功从apache日志生成初始统计信息。 我把链接放在默认的虚拟主机文件中。 但是当我尝试运行http://server-ip-address:8080/awstats/awstats.pl ,我得到:

 Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats. Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory). 

这是我的/etc/apache2/sites-available/default文件:

 <VirtualHost *:8080> ServerAdmin webmaster@localhost DocumentRoot /home/saad/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /home/saad/www/> Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> Alias /awstatsclasses "/usr/share/awstats/lib/" Alias /awstats-icon "/usr/share/awstats/icon/" Alias /awstatscss "/usr/share/doc/awstats/examples/css" ScriptAlias /awstats/ /usr/lib/cgi-bin/ Options ExecCGI -MultiViews +SymLinksIfOwnerMatch ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> 

我在/etc/awstats/awstats.conf中编辑的三个variables是:

 LogFile="/var/log/apache2/access.log" SiteDomain="server-name.noip.org" HostAliases="localhost 127.0.0.1 server-name.no-ip.org" 

Apache服务器工作正常,我能够访问存储在服务器上的其他页面。 任何指导将受到欢迎。

更新:

事实certificate,除了 awstats.conf文件之外 ,您还必须编辑awstats.server-name.no-ip.org文件才能使其运行。 wiki说明只是编辑自己创build的conf文件。 一旦我编辑了awstats.conf本身,它开始工作。

安装程序('/etc/awstats/awstats.conf'文件,Web服务器或权限)可能是错误的。

看起来像awstats CGI脚本无法读取configuration文件。 确保web服务器用户(通常是www数据)可以读取此文件。