When converting a sub server to a parent server the path the many scripts which have been installed will change. If the part is hard coded or set absolutely, this will break the script and cause a 500 error. Check the logs under Virtualmin | Logs & Report | Apache / Nginx Error Logs to get more information about why the 500 error occurs.