The map file has to be edited to change the 'wms_onlineresource' and other metadata to point out to the correct location of your WMS service. The wrapper file in the bin directory has to be edited to change the map file and mapserver location.