Go here first, then change everything else accordingly. the wwwroot is not the only thing that needs changing.
Installing and upgrading help
Old promlem with $CFG->wwwroot
This discussion has been locked so you can no longer reply to it.