PHP info page showing the code as text file. This could be because PHP handler not added. If you access PHP info page,
http://domain.com/info.php
it will show ,
<?php
phpinfo();
?>
To fix this, add corresponding PHP handler in apache configuration file,
-------
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php
--------
Now access http://domain.com/info.php
Done
http://domain.com/info.php
it will show ,
<?php
phpinfo();
?>
To fix this, add corresponding PHP handler in apache configuration file,
-------
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php
--------
Now access http://domain.com/info.php
Done