
| ・ |
ドキュメントセンターを初めてご利用する方や運営方針についての基本的な姿勢をご覧になりたい方へ。
|
| ご利用の皆様から多く寄せられる質問にお答えしています。 |
|
| ・ |
ディーエーオフィスなどが利用する用語に関する解説を行います。
|
|
|
 |
 |  |
Maia Mailguardを導入時、PortsのSmartyが見つからないと言われますが? |
Pathの設定を工夫し、シンボリックリンクなどを追加します。
PortsからSmartyを導入した場合、configtest.phpでの確認でSmartyがインストールされていないと表示されますが、PortsからインストールしたSmartyが認識されていない状態です。呼び出すときに、「Smarty/」を追加するため、一つ上となるディレクトリへpathを設定しておくと良いでしょう。
= configtest.phpの例 =
http://www.domain.tld/admin/configtest.php
= 不具合の例 =
FAILED: Not installed. The Smarty templating engine is required. See this page for more information about downloading and installing Smarty.
! 修正例
まずは、php.iniに追加すべきpathを指定します。
ee /usr/local/lib/php.ini
下記の要領で追加しますが、include_pathは、「:」で区切って指定します。smartyのディレクトリ「/usr/local/share/smarty」ではなく、一つ上にあたる「/usr/local/share」を追加します。
include_path = ".:/usr/local/lib/php"
↓
include_path = ".:/usr/local/lib/php:/usr/local/share"
次に、「/usr/local/share/Smarty/」を呼び出そうとしますが、「/usr/local/share/smarty」がPortsで導入されるディレクトリとなるため、シンボリックリンクを追加しておきます。
cd /usr/local/share
ln -s smarty Smarty
最後に、apacheを再起動します。
/usr/local/apache2/bin/apachectl restart
---
= PortsでのSmarty位置 =
/usr/local/share/smarty
amavisdの入れ替えでconfigファイルの位置を変更
push(@config_files, '/etc/amavisd.conf') if !@config_files;
↓
push(@config_files, '/usr/local/etc/amavisd.conf') if !@config_files;
|
| 文書番号 |
06981 |
| 日付 |
2006.06.18 |
| 参照数 |
461 |
|