QuickAnswer
by

CakePHP2をサーバー移転したらエラー。open_basedir restriction in effect

CakePHP2をサーバー移転したらエラー。open_basedir restriction in effect

CakePHP2使用のウェブサイトをそのままサーバー移転したら画面真っ白。エラーログには以下のメッセージが記録されていた。

mod_fcgid: stderr: PHP Warning: include(): open_basedir restriction in effect. File(/path/to/lib/Cake/Error/ErrorHandler.php) is not within the allowed path(s): (/path/to/:/tmp/) in /path/to/lib/Cake/Core/App.php on line 547

サーバーの設定が違う為なのか、設定を変えてみたが直らず。

お約束のキャッシュクリア

何となくいつもの癖で、キャッシュをクリアした。

app/tmp/cache/models
app/tmp/cache/persistent

これで直った。

困った時にはまずキャッシュクリアである。

CONTENTS