First, navigate to the General Settings tab and find Change Server Type. Once there set up the change server type menu for installing forge.
Once the Change Server Type menu has been configured, press the Change Server Type button, this will prompt you to make a backup and it is advised to do so.
Once the server has started again and finished running the installer you can go on to install mods!