Thank you very much for your help.
I have tried some other ways and found out that my php version was the problem. The subdomain had an higher version and so wordpress couldn`t run on the main-domain. I changed the settings to match the versions of each other and now it runs fine.