こんにちは。碓井です。
松木様に教わった手順
> 1)いっぺんroot権限でanalogを走らす。Unix(Solaris)の場合には、これで
> images/ ディレクトリ中に出来上がった、code.png, dir.png, 等は
> 666の権限で書き込まれ、以後普通のユーザに戻って、jpform.htmlを動かしても
> もう権限を気にせずに普通に円グラフが表示されるようになります。
> これは、httpd.conf 中で以下の指定をした場合です。
> Alias /analog/images/ /home/httpd/html/images/
この方法と、analog.cfgの"CHARTDIR"と"LOCALCHARTDIR"の行の設定を手直しすると
無事に円グラフは表示されるようになりました。
私の場合のanalog.cfgの"CHARTDIR"と"LOCALCHARTDIR"の行の部分は以下のようにしました。
*** analog.cfg ******************************************
:
CHARTDIR /images/
LOCALCHARTDIR /usr/local/apache/htdocs/images/
:
*********************************************************
ちなみに私のマシンのディレクトリ構造は以下です。
かなり省略しててわかりにくいとは思いますが…。
*********************************************************
/usr/local/apache/conf/httpd.conf
│ :
│
├ analog-5.0/analog
│ ├ analog.cfg
│ ├ images/
│ ├ lang/
│ :
│
├ cgi-bin/anlgform.pl
│ :
│
├ htdocs/jpform.html
│ ├ index.html
│ :
│
├ images/*.png
├ *.gif
│ :
*********************************************************
関連ファイル類の設定部分も記しておきます。
*** jpform.html *****************************************
<html><head>
<title>Analog form interface</title>
</head>
<body bgcolor=white>
<h1><img src="/images/analogo.gif" alt="">
Analog フォームインタフェース</h1>
<form action="/cgi-bin/anlgform.pl" method="POST">
~~~~~~~~~~~~~~~~~~~~~
<input type=hidden name="IMAGEDIR" value="/images/">
<input type=hidden name="LOGFILE" value="/usr/local/apache/logs/access_log">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<input type=hidden name="LANGUAGE" value="JAPANESE">
<hr>
<h2>1. 選択するレポート</h2>
:
:
*********************************************************
*** httpd.conf ******************************************
:
Alias /analog/ /usr/local/apache/analog-5.0/
:
*********************************************************
*** anlgform.pl *****************************************
:
# 1) uncomment (remove everything before $analog) and edit one of the next two
# lines to give the location (full pathname) of the analog executable.
Unix: $analog = '/usr/local/apache/analog-5.0/analog';
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Windows: $analog = 'C:\program files\analog 5.0\analog.exe';
# 2) If you're on Unix, edit the first line in this file to give the location
# of Perl (don't remove the #! though).
# 3) You also need to edit anlgform.html if you want to use the form.
# 4) Add to the forbidden commands below if you want.
:
*********************************************************
forrow下さった皆様ありがとうございました。
またよろしくお願いします。
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
碓井 丈夫
takeo-u@pop07.odn.ne.jp
_______________