セッションエラー

coreserverでcakePHPを動かしたときに、セッションを使うと

Warning (2): session_start() [function.session-start]: open(/tmp/sess_sci1m2l4kennnd48kl12d89s13, O_RDWR) failed: Permission denied

とエラーが出た。

権限のない場所に一時ファイルを作ろうとしているのが原因みたい。ftpでログインしたルートにtmpディレクトリを作って権限を付けて、app/webroot/php.iniを作って

session.save_path=”/virtual/アカウント名/tmp”

と書いて設置。これで解決。

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

コメントをどうぞ

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">