We'll need more info about your server: operating system? ...do you own the machine, or use a webhost?
Re: ERROR: You need to create the directory http://localhost/moodle with web server write access
per Bill Bimber,
Number of replies: 0