Error with Moodle

I can’t install Moodle. When I do the installation I get an error:

Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.

What do I have to do?

Why?