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。
我試了很多教程,但我不知道我能做什麼錯。誰能幫我?謝謝