2017-06-19 106 views
1

我安裝/配置Piwik RHEL 7服務器(使用Apache 2.4和PHP 7.0),但圖像不顯示。Piwik沒有顯示圖像

URL f.ex.的標識是http://localhost/plugins/Morpheus/images/logo.svg或「http://.../plugins/Morpheus/images/logo.png」。當我直接打開網址時,出現此錯誤:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at (mail) to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

我會感謝任何幫助。

問候

「..plugins /的.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>' 
+0

你在php錯誤日誌中得到任何錯誤?您是從主頁上還是從github上的zip中安裝它? –

+0

我從主頁上的zip中安裝它。我只在apache日誌中出現錯誤:[核心:警報] [pid 19946:tid 140541675198208] [客戶端ip地址:62554] /appbase/http/piwiktest/plugins/.htaccess: Duezceli

+0

是否有可能禁用了.htaccess文件? https://serverfault.com/a/529015 –

回答

0

我在「 ../piwik/plugins/.htaccess」 和」評論的所有行.. /piwik/libs/.htaccess「(參見上面的文件內容)。這解決了我的問題。至少頁面/圖像顯示正確。