If I access http://domain.com/info.php , the output is:
<?php
phpinfo();
?>
This is because correct handler is not added in apache configuration file as below:
-----------
AddType application/x-httpd-php .php
-----------
Here application/x-httpd-php is the mime type.