Piwik没有显示图像

时间:2017-06-19 10:26:20

标签: php rhel matomo

我在 RHEL 7 服务器上安装/配置了Piwik(使用 Apache 2.4和PHP 7.0 ),但不显示图像。

网址f.ex.徽标是http://localhost/plugins/Morpheus/images/logo.svg或" http://.../plugins/Morpheus/images/logo.png"。当我直接打开网址时,我收到此错误:

  

内部服务器错误

     

服务器遇到内部错误或配置错误,无法完成您的请求。

     

请通过(邮件)与服务器管理员联系,告知他们此错误发生的时间以及您在此错误发生之前执行的操作。

     

服务器错误日志中可能提供了有关此错误的更多信息。

     

此外,尝试使用ErrorDocument处理请求时遇到404 Not Found错误。

我会感谢任何帮助。

祝你好运

" ..插件/ htaccess的":

'# This file is auto generated by Piwik, do not edit directly
# Please report any issue or improvement directly to the Piwik team.

# First, deny access to all files in this directory
<Files "*">
<IfModule mod_version.c>
        <IfVersion < 2.4>
                Order Deny,Allow
                Deny from All
        </IfVersion>
        <IfVersion >= 2.4>
                Require all denied
        </IfVersion>
</IfModule>
<IfModule !mod_version.c>
        <IfModule !mod_authz_core.c>
                Order Deny,Allow
                Deny from All
        </IfModule>
        <IfModule mod_authz_core.c>
                Require all denied
        </IfModule>
</IfModule>
</Files>
# Serve HTML files as text/html mime type - Note: requires mod_mime apache module!
<IfModule mod_mime.c>
   AddHandler text/html .html
   AddHandler text/html .htm
</IfModule>

# Allow to serve static files which are safe
<Files ~ "\.(gif|ico|jpg|png|svg|js|css|htm|html|swf|mp3|mp4|wav|ogg|avi|ttf|eot)$">
<IfModule mod_version.c>
        <IfVersion < 2.4>
                Order Allow,Deny
                Allow from All
        </IfVersion>
        <IfVersion >= 2.4>
                Order Allow,Deny
                Allow from All
                #Require all granted
        </IfVersion>
</IfModule>
<IfModule !mod_version.c>
        <IfModule !mod_authz_core.c>
                Order Allow,Deny
                Allow from All
        </IfModule>
        <IfModule mod_authz_core.c>
                Order Allow,Deny
                Allow from All
                #Require all granted
        </IfModule>
</IfModule>
</Files>'

1 个答案:

答案 0 :(得分:1)

我评论了“../piwik/plugins/.htaccess”和“../piwik/libs/.htaccess”中的所有行(请参阅上面的文件内容)。这解决了我的问题。至少页面/图像显示正确。