Ok so i just installed apache2 and php5 following along with this tutorial
http://www.socialblogr.com/2010/08/how-to-install-php-monggodb-monggo-driver-on-linux-ubuntu.html
But php isn't working, when i try to view a .php file i just the the entire code, although php is installed and i restarted the server
< ?php phpinfo(); ?>