gpt4 book ai didi

performance - 使用 ubuntu 13.10 在 apache2 中安装 awstats

转载 作者:行者123 更新时间:2023-12-04 18:58:09 26 4
gpt4 key购买 nike

我正在尝试在虚拟机中使用 Ubuntu 13.10 在 apache2 中安装 awstats。这是我遵循的教程:Awstats installation

我使用端口访问我的虚拟机,如下所示:“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.

如果我在 000-default.conf 中评论“Options ExecCGI -MultiViews +SymLinksIfOwnerMatch”行,错误就会消失,但我无法使用以下命令访问 awstats:
http://mydomain.ext/awstats/awstats.pl

这是因为在我的文件夹“/var/www”中没有任何名为 awstats 的文件夹包含文件 awstats.pl。

我已经尝试了很多教程,但我不知道我做错了什么。谁能帮我?谢谢

最佳答案

添加 +ExecCGI 前面.然后重新加载。

关于performance - 使用 ubuntu 13.10 在 apache2 中安装 awstats,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22114741/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com