We should run some environment checks from the CLI:
- safe_mode / open_basedir
- extensions
- PHP version?
The CLI may have different configuration that the webserver (and this is common in some distros).
See chatlog for one case of safe_mode on CLI causing problems.