The answer is in your errormessage: safe mode is on, and moodle is not running on a server with php in save mode (see http://moodle.org/doc/?file=install.html#requirements )
Only two sollutions:
- turn save mode off if it's your own server
- if you're on a hosted machine, move to another host