http://trac.openpne.jp/wiki/OpenPNESetup
> /etc/crontab に以下を記述。
>
> # 6時にメールを送信&20分毎にRSS更新
> 00 6 * * * root sh OPENPNE_DIR/bin/tool_send_dairy_news.cron OPENPNE_DIR/bin/ [bin_path]/php
> 00 6 * * * root sh OPENPNE_DIR/bin/tool_send_birthday_mail.cron OPENPNE_DIR/bin/ [bin_path]/php
> 00 6 * * * root sh OPENPNE_DIR/bin/tool_send_schedule_mail.cron OPENPNE_DIR/bin/ [bin_path]/php
> */20 * * * * root sh OPENPNE_DIR/bin/tool_rss_cache.cron OPENPNE_DIR/bin/ [bin_path]/php
ってあるんだけどありえなくないですか?
rootで実行させる必要ないと思います。
例えば、
<?php
$delete_dir = OPENPNE_VAR_DIR ."/img_cache/" . $target_dir;
exec("rm -rf $delete_dir");
?>
なんてコードがあって、バグで
$target_dir = " /"
とかだったりするとOSごとサヨナラですね。