2007年2月18日日曜日

Plesk with Maia MaiaMailguard(5)

翌日である!(え?)

さっそくだがログを見るとエラーがSmartyとシステムアクセスで出ているようだ。
とりあえずSmartyをなんとかしなくてはいけない。
とおもったらよいのがあった。
http://phpspot.org/blog/archives/2005/12/pearsmartyphpmy.html
Pleskはセキュリティ関係がうるさい。
せっかくpearを解放しているのだからpear環境にSmartyをつっこめれば上手くいくかもしれない。
さっそく

# pear channel-discover pearified.com
Adding Channel "pearified.com" succeeded
Discovery of channel "pearified.com" succeeded
# pear list-channels
Registered Channels:
====================
Channel Summary
pear.php.net PHP Extension and Application Repository
pearified.com PEAR-Compatible Extension and Application
Repository
pecl.php.net PHP Extension Community Library
__uri Pseudo-channel for static packages
# pear install pearified/Smarty
downloading Smarty-2.6.8.tgz ...
Starting to download Smarty-2.6.8.tgz (146,444 bytes)
................................done: 146,444 bytes
install ok: channel://pearified.com/Smarty-2.6.8


風呂にはいってワインを飲んだだけあって調子が良い。
Smartyがみつけられないようなので修正。
/var/www/vhosts/hogehoge.jp/htpdocs/maia/config.php
$smarty_path = "/usr/share/pear/Pearified/Smarty";
コメントアウトされている上記のpathを変更してやった。
エラーは減ったがのこったのは意味不明なエラー・・・。

[client xxx.xxx.xxx.xxx] maia: 2007-02-18 00:11:01 (JST) - Warning - rename(/tmp/wrtucoVaK,themes/ocean_surf/compiled//%%6A^6A5^6A537DD8%%login.tpl.php): Permission denied at /usr/share/pear/Pearified/Smarty/internals/core.write_file.php line [46]¥n
[client xxx.xxx.xxx.xxx] maia: 2007-02-18 00:11:01 (JST) - Warning - chmod(): Permission denied at /usr/share/pear/Pearified/Smarty/internals/core.write_file.php line [47]¥n
[client xxx.xxx.xxx.xxx] maia: 2007-02-18 00:11:01 (JST) - Warning - fetch(themes/ocean_surf/compiled//%%6A^6A5^6A537DD8%%login.tpl.php): failed to open stream: No such file or directory at /usr/share/pear/Pearified/Smarty/Smarty.class.php line [1251]¥n
[client xxx.xxx.xxx.xxx] maia: 2007-02-18 00:11:01 (JST) - Warning - fetch(): Failed opening 'themes/ocean_surf/compiled//%%6A^6A5^6A537DD8%%login.tpl.php' for inclusion (include_path='/usr/share/pear/Pearified/Smarty:.:/usr/share/pear:./libs:') at /usr/share/pear/Pearified/Smarty/Smarty.class.php line [1251]¥n 


themeフォルダの中のフォルダまでアクセス権を755にしてやる。
細かいパーミッションに関しては後日詰めるとしておおざっぱに行く・・・。

残りのエラー
maia: 2007-02-18 00:30:54 (JST) - Warning - getimagesize(themes/ocean_surf/images/maia-logotoolbar.gif): failed to open stream: Permission denied at /var/www/vhosts/hogehoge.jp/httpdocs/maia/smarty.php line [191]¥n

うーん、とりあえずimagesを755 compiledを777にしたら動作した。
問題がありそうな設定だけどとりあえず動いたからよしとする。

さて、ここからが本番である。
maiaの認証方式は多岐に渡る。
postfixの際はsqlで読みにいった。今回も出来ればsqlでいきたい。
が、無理であればpopやimapでもいいのだろう。





0 件のコメント:

コメントを投稿

フォロワー

ブログ アーカイブ