0
我试图在apache2中用Ubuntu 13.10在虚拟机中安装awstats。这是我跟着教程:Awstats installation在ubuntu下安装apache2 awstats 13.10
我用一个端口来访问我的虚拟机是这样的:“myname.es:port”
有我添加端口在这些行?
SiteDomain="yourdomain.ext"
HostAliases="localhost 127.0.0.1 yourdomain.ext"
我还有一个问题,当我必须粘贴下面的代码
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
到/etc/apache2/sites-available/000-default.conf和我重装的Apache2我看到的错误:
* Reloading web server apache2 *
* The apache2 configtest failed. Not doing anything.
Output of config test was:
AH00526: Syntax error on line 20 of /etc/apache2/sites-enabled/000-default.conf:
Either all Options must start with + or -, or no Option may.
Action 'configtest' failed.
The Apache error log may have more information.
如果我评论该行 “选项ExecCGI -MultiViews + SymLinksIfOwnerMatch” 在000-default.conf错误消失,但使用我不能访问到的AWStats:
http://mydomain.ext/awstats/awstats.pl
这是因为在我的文件夹“/ var/www”中没有任何名为awstats的文件夹包含文件awstats.pl。
我试了很多教程,但我不知道我能做什么错。谁能帮我?谢谢