I'm transferring website from Linux/Apache to Windows Server 2008/IIS 7. I've copied all DBs, scripts, imported mod_rewrite rules etc.

But when I run website, it displays PHP as simple HTML or as text file.

When I change "<?" in the beginning of scripts to "<?php", I get "500 error".

What is the reason of this?