I have an apache2 server running with all these installed:
apache2 php5 php5-gd php-xml-parser php5-intl php5-sqlite php5-mysql smbclient curl libcurl3 php5-curl
I have created a file test.php:
<?php phpinfo(); ?>
On the server, when opened the web page all that appears is the actual php code, when it should look like this:

What is the problem I have looked at the apache logs but nothing looks odd.
Any ideas?
*.phpand in the server dir? Also do you call the file over the server?