The following assumptions have been made. You have an apache server installed, configured, and running with vhosts. You have also installed any of the the mercurial dependencies before installation. Get…