Tried doing that, when I back out, and try to go to my moodle home page, I get a response page which says there is a problem with config.php, try setting
dirroot to '/var/www/html/moodle'
and
wwwroot to '/var/www/html/moodle'
which were original settings.