phpMyAdminのエラー

phpMyAdminを使おうとしたらエラー。

"Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly."


ググったところ、

大抵はphp.iniの「session.save_path」で指定しているのディレクトリのパーミッションの問題らしい。

http://nobukatsu.jp/?p=419

とのこと。

更にググると、http://wiki.phpmyadmin.net/pma/session.save_pathにテスト用のPHPコードが見つかり、これを試したところ、

Warning: session_start(): open(/var/lib/php/session/sess_xxxx, O_RDWR) failed: Permission denied (13) in /xxx/public_html/php_test.php on line 6

If a session could be started successfully you should not see any Warning(s), otherwise check the path/folder mentioned in the warning(s) for proper access rights.The current "session.save_path" is "/var/lib/php/session".
Session file name: "sess_xxxx".

Warning: Unknown: open(/var/lib/php/session/sess_xxxx, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

ということでやっぱりsession.save_pathに書き込みができないのが原因と判明。

昔はこんなエラーなかったんだけどなあ。
サーバーの管理者様に対応をお願いしたんだけど、どうにかして貰えるか?

phpMyAdminが動かないとMySQLのバックアップが取れないので辛い。

テスト用のPHPコード(ZIP)


その後いろいろやってみて、自力で解決できる方法も見つけられた。
解決編はこちら

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)

This site uses Akismet to reduce spam. Learn how your comment data is processed.