[Ubuntu][php] 続・WordPress + PDO (SQLite) For Wordpress インストール時のエラー

上記の問題を解決したものの、install.phpを実行すると以下のエラーが発生。

Fatal error: Call to a member function bail() on a non-object in /var/www/wordpress/wp-content/pdo/PDOEngine.php on line 82

で、該当行を確認。

$wpdb->bail('<h1>Permissions Problem</h1><p>PDO For WordPress needs to be able to write to the folder ' .FQDBDIR ."</p>");

$wpdbがnull、というのもあるけど、そもそも権限の問題か。
$ chmod -R 777 wordpress/