It should be enough to enable short_open_tags in your php.ini file - I personally don't recommend using shorttags though, as they can mess up when moving code or changing the environment (as in your case).
If you're unsure, open your PHP.ini file, add the line:
short_open_tags = 1
Restart your apache and you should be ready to go.
hope that helps