Please read webserver requirements section from here.
Whatever your screenshot shows, it's not from a php-capable webserver. It's just outputting the code to the browser instead of running it.
I am strugling realy hard to get it set up via web server is there any one that can come and help me via discord to set up my livemap I suck at setting it up I wish I could use feudaltools but local host is not suported