はじめての自宅サーバ構築 - Fedora/CentOS -
Last Update 2018/05/30
[ 更新履歴 ] [ サイト マップ ] [ 質問掲示板 ] [ 雑談掲示板 ] [ リンク ]
トップ >> 質問掲示板

 awstatsで画像が表示されない
日時: 2007/03/14 16:39
名前: FC勉強中

①不明点・障害内容:awstatsの画像が表示されない
②ログの有無   :
  (有:その内容):
③Distribution  :FC6
      Version:awstats6.6
④Service Name  :
      Version:
⑤ネットワーク構成:

2度目の質問になります、よろしくお願いします。

awstatsをインストールして動作確認の項までは問題なくインストールでき(たはず)て集計もできています。
ところが画像が表示されないままで、awstats.confのAlias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
このあたりも確認してみましたが実際にアイコンなどはありますし、パーミッションが読み取り不可になってる
わけでもないようです。

Logwatchでも以下のような警告が毎日来ます。

403 Forbidden
    /awstatsicons/browser/firefox.png: 30 Time(s)
    /awstatsicons/browser/frontpage.png: 1 Time(s)
    /awstatsicons/browser/mozilla.png: 30 Time(s)
・・・・・・

そしてさらに、apacheを再起動すると以下のメッセージが出てきてパスワード入力を求められます。

[root@fedora ~]# /etc/rc.d/init.d/httpd restart
httpd を停止中:                      [ OK ]
httpd を起動中: [Wed Mar 14 16:13:06 2007] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 1003 will probably never match because it overlaps an earlier Alias.
[Wed Mar 14 16:13:06 2007] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 1004 will probably never match because it overlaps an earlier Alias.
[Wed Mar 14 16:13:06 2007] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 1005 will probably never match because it overlaps an earlier Alias.
[Wed Mar 14 16:13:06 2007] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 1006 will probably never match because it overlaps an earlier ScriptAlias.
Apache/2.2.3 mod_ssl/2.2.3 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.

Server fedora.xxxxxxxx.yyy:443 (RSA)
Enter pass phrase:

OK: Pass Phrase Dialog successful.
                              [ OK ]
[root@fedora ~]#

Aliasをincludeしたにもかかわらず二重に読みこませようとしましたね!みたいな警告に取れるのですが、いかがなものでしょうか?

画像が出ないのは無視してもよかったのですが、apacheの再起動でパスワードを求めれるのは問題があるので質問させていただきました。
メンテ

Page:  [1] [2]

■ コンテンツ関連情報

 Re: awstatsで画像が表示されない ( No.1 )
日時: 2007/03/14 17:30
名前: 管理者

大きく分けると3つの問題がありますね。

1.アクセス権なし
> 403 Forbidden
>     /awstatsicons/browser/firefox.png: 30 Time(s)
>     /awstatsicons/browser/frontpage.png: 1 Time(s)
>     /awstatsicons/browser/mozilla.png: 30 Time(s)


上記は以下「2」に付随するかもしれませんので、以下の項番に割愛致します。

2.設定のオーバーラップ
> [Wed Mar 14 16:13:06 2007] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 1004 will probably never match because it overlaps an earlier Alias.

「/etc/httpd/conf/httpd.conf」と「/etc/httpd/conf.d/awstats.conf」にawstatsの定義を2重登録していませんか?
「/etc/httpd/conf/httpd.conf」内にあるawstats部分(通常は最下位の方へ追加されます。)を全てコメント化してください。
(awstatsに関する定義は「/etc/httpd/conf.d/awstats.conf」のみで完結するようにして下さい。)
上記「1」に関して、画像等が置かれている部分まで「apache」がアクセス出来る権限がありますか?
オーナ・グループ、パーミッションを確認してみて下さい。

3.起動時のパスフレーズ入力
> Server fedora.xxxxxxxx.yyy:443 (RSA)
> Enter pass phrase:


こちらは通信内容暗号化(mod_ssl)を適用していますね。
サーバ用秘密鍵(server.key)からのパスフレーズ削除を行わなかった為と思われます。
以下のURLを参照して、パスフレーズを削除して下さい。

  参照:http://kajuhome.com/apache_ssl.shtml#n07
メンテ
 Re: awstatsで画像が表示されない ( No.2 )
日時: 2007/03/14 18:16
名前: FC勉強中

管理人様、早速の返信ありがとうございます。

順番が前後しますが、まず 

3.起動時のパスフレーズ入力に関して

その通りでした。後回しにしていたために問題が複合化してしまいました、すみません。

2.設定のオーバーラップに関して

「/etc/httpd/conf/httpd.conf」の下部に追加された部分(「/etc/httpd/conf.d/awstats.conf」と重複する)
は全部コメントアウトするとawstatsのページ自体がアクセスできなくなります。403ERRORですね。
そこで以下の部分を残すとページにはアクセスできますが、やはり画像は出ません。
この両方ともapacheの再起動は警告無く行えました。

<Directory "/usr/share/awstats/wwwroot/cgi-bin/">
  Options None
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

次に画像への権限ですが、画像までのディレクトリーは全部rootオーナーで755
画像ファイルはrootオーナーで644です。

このような状況ですが、何か確認することはありますでしょうか?よろしくお願いします。
メンテ
 Re: awstatsで画像が表示されない ( No.3 )
日時: 2007/03/14 18:28
名前: 管理者

ちなみに、「/etc/httpd/conf/httpd.con」内には、awstats関連の設定は無いと思って宜しいですね?
「/etc/httpd/conf.d/awstats.conf」は以下の様になっていますか?

#
# Content of this file, with correct values, can be automatically added to
# your Apache server by using the AWStats configure.pl tool.
#

#
# Directives to add to your Apache conf file to allow use of AWStats as a CGI.
# Note that path "/usr/share/awstats/" must reflect your AWStats install path.
#
Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"

#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/share/awstats/wwwroot">
  Options None
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>
# Additional Perl modules
<IfModule mod_env.c>
  SetEnv PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
</IfModule>
メンテ
 Re: awstatsで画像が表示されない ( No.4 )
日時: 2007/03/14 18:33
名前: FC勉強中

<Directory "/usr/share/awstats/wwwroot">
  Options None
  AllowOverride None
  Order allow,deny
  Allow from 127.0.0.1
</Directory>

Allow from の部分が異なっています。
メンテ
 Re: awstatsで画像が表示されない ( No.5 )
日時: 2007/03/14 18:36
名前: FC勉強中

確認せずにそのまま返信してしまいましたが、Allow from all に変更してapacheを再起動したらちゃんと画像が出ました。ありがとうございます。
メンテ

Page:  [1] [2]

題名
名前  ("初心者"を含む名前は使用できません)
E-Mail
URL
パスワード 記事メンテ時に使用)
投稿キー (投稿時 投稿キー を入力してください)
コメント
画像添付 (対応画像:JPEG/GIF/PNG [Max 500KB])

   クッキー保存

■ その他


Copyright(©)2004-2018 First home server construction. All Right Reserved.