Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 无法在CentOS上放大Munin图形_Apache_Apache2_Centos6_Munin - Fatal编程技术网

Apache 无法在CentOS上放大Munin图形

Apache 无法在CentOS上放大Munin图形,apache,apache2,centos6,munin,Apache,Apache2,Centos6,Munin,我已经在CentOS 6系统上安装了munin。 安装程序如下: rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum --enablerepo=epel install munin munin-node rrdtool vim /etc/httpd/conf.d/munin.conf htpasswd -cm /etc/munin/munin-htpassw

我已经在CentOS 6系统上安装了munin。 安装程序如下:

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum --enablerepo=epel install munin munin-node rrdtool

vim /etc/httpd/conf.d/munin.conf

htpasswd -cm /etc/munin/munin-htpasswd muninadmin

/etc/init.d/munin-node start

chkconfig munin-node on

service httpd restart
用于检查图形的Url-

在Munin.conf中,用以下内容替换现有数据:

Alias /munin /var/www/html/munin

<Directory /var/www/html/munin>

  Options FollowSymLinks

  AllowOverride None

  Order allow,deny

  Allow from all

</Directory>
chown -R munin:apache /var/log/munin/
systemctl restart httpd
Alias/munin/var/www/html/munin
选项如下符号链接
不允许超限
命令允许,拒绝
通融
我可以查看所有的图表,但不能放大其中的任何一个。 我已经附上了我尝试缩放时得到的屏幕截图


我们有什么解决办法吗?我在安装步骤中遗漏了什么吗?

我这样修复了它,没有对RHEL/CentOS7中的默认设置进行任何进一步调整:

sudo mkdir /var/lib/munin/cgi-tmp

sudo chown apache:apache /var/lib/munin/cgi-tmp

如果您仍然感到悲伤,请使用audit2allow确保您没有被selinux扣篮。

我需要执行以下操作:

Alias /munin /var/www/html/munin

<Directory /var/www/html/munin>

  Options FollowSymLinks

  AllowOverride None

  Order allow,deny

  Allow from all

</Directory>
chown -R munin:apache /var/log/munin/
systemctl restart httpd
我的/etc/httpd/conf.d/munin.conf如下所示:

alias /munin /var/www/html/munin
ScriptAlias   /munin-cgi/munin-cgi-graph /var/www/html/munin/cgi/munin-cgi-graph

#ScriptAlias /munin-cgi/ /var/www/html/munin/cgi/

# FastCGI
<Directory "/var/www/html/munin/cgi">
    Options +ExecCGI
    <IfModule mod_fcgid.c>
        SetHandler fcgid-script
    </IfModule>
    <IfModule !mod_fcgid.c>
        SetHandler cgi-script
    </IfModule>
</Directory>

<directory /var/www/html/munin>
    Satisfy Any
</directory>
alias/munin/var/www/html/munin
ScriptAlias/munin cgi/munin cgi graph/var/www/html/munin/cgi/munin cgi graph
#ScriptAlias/munin-cgi//var/www/html/munin/cgi/
#快速CGI
选项+执行CGI
SetHandler fcgid脚本
SetHandler cgi脚本
满足任何

您似乎错过了Apache配置:谢谢您的回复。我们到底在哪里添加这个apache配置?与此同时进行的任何其他配置?您必须将配置保存在vHost设置中。通常,它们位于
/etc/httpd/sites available/
中。我从上面的链接尝试了apache确认。但这没用。