Munin不在Ubuntu中创buildhtml文件

我使用Apache 2.4.7在Ubuntu Server 14.04中安装了Munin

但是,在完成所有configuration之后,Munin不会在html目录中创buildhtml文件。 这是我的文件:

munin.conf

dbdir /var/lib/munin htmldir /var/www/www/munin logdir /var/log/munin rundir /var/run/munin # Where to look for the HTML templates # tmpldir /etc/munin/templates [MuninMaster] address 127.0.0.1 use_node_name yes 

和我的apache.conf

  Alias /munin /var/www/www/munin <Directory /var/www/www/munin> #Order allow,deny #Allow from localhost 127.0.0.0/8 ::1 #Options None Require all granted Options FollowSymLinks SymLinksIfOwnerMatch # This file can be used as a .htaccess file, or a part of your apache # config file. # # For the .htaccess file option to work the munin www directory # (/var/cache/munin/www) must have "AllowOverride all" or something # close to that set. # # AuthUserFile /etc/munin/munin-htpasswd # AuthName "Munin" # AuthType Basic # require valid-user # This next part requires mod_expires to be enabled. # # Set the default expiration time for files to 5 minutes 10 seconds from # their creation (modification) time. There are probably new files by # that time. # <IfModule mod_expires.c> ExpiresActive On ExpiresDefault M310 </IfModule> </Directory> 

但是,当我去myip / munin我有一个403禁止。 并看着/ var / www / www / munin theres没有文件。 (在此之前,我有/ var / www / munin但是不pipe用)。

任何提示?

首先,这是一个错字: htmldir /var/www/www/munin

如果是这样,让我们​​确保munin用户可以访问该目录。 testing它:

  1. Make /var/www/muninmunin拥有:

     $ sudo chown munin: /var/www/munin 
  2. 手动运行作业并检查输出是否有错误:

     $ sudo sudo -u munin /usr/bin/munin-cron --debug 2>&1 | less