I’m a novice, I installed php5 and apache2 on ubuntu,
I wrote this basic php script
<?
phpinfo();
?>
But, when I open the file in the browser, it only “downloads” the file, it doesn’t run the script and show me the necessary info.
Am I missing something?
Obviously you are missing something. Try this manual: http://blog.sudobits.com/2011/10/28/how-to-install-lamp-apache-mysql-php-on-ubuntu-11-10/