Performance 使用ubuntu 13.10在apache2中安装awstats
我正试图在虚拟机上用Ubuntu 13.10在apache2中安装awstats。这是我遵循的教程: 我使用一个端口访问我的虚拟机,如下所示:“myname.es:port” 我必须在这些行中添加端口吗Performance 使用ubuntu 13.10在apache2中安装awstats,performance,ubuntu,apache2,measure,awstats,Performance,Ubuntu,Apache2,Measure,Awstats,我正试图在虚拟机上用Ubuntu 13.10在apache2中安装awstats。这是我遵循的教程: 我使用一个端口访问我的虚拟机,如下所示:“myname.es:port” 我必须在这些行中添加端口吗 SiteDomain="yourdomain.ext" HostAliases="localhost 127.0.0.1 yourdomain.ext" 当我必须粘贴下一个代码时,我遇到了另一个问题 Alias /awstatsclasses "/usr/share/awstats
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.
如果我对000-default.conf中的“Options ExecCGI-MultiViews+symlinksFownerMatch”行进行注释,错误将消失,但我无法使用以下方式访问awstats:
http://mydomain.ext/awstats/awstats.pl
这是因为在我的文件夹“/var/www”中没有任何名为awstats的文件夹包含文件awstats.pl
我试过很多教程,但我不知道我做错了什么。有人能帮我吗?谢谢在
ExecCGI
前面添加+
。然后重新加载。将+
添加到ExecCGI
前面。然后重新加载。将+
添加到ExecCGI
前面。然后重新加载。将+
添加到ExecCGI
前面。然后重新加载