There is no clean and secure way to do that beside reinstalling the server. You can try to do it without a reinstall, but the risk is high to break the whole setup. so my recommendation is to backup website data, databases and mailboxes, then reinstall the server and create the sites again and then restore the data.