Cannot run phpinfo() on Ubuntu 8.04LTS

Asked by uye

i have installed apache2 php5 libapache2-mod-php5 on my Ubuntu 8.04 LTS box without raising any errors. When i browse to index.html found in /var/www directory by surging to http://myBoxName from FireFox browser, it does display the page. i create a test.php page in /var/www as follows.
# test.php
<?php phpinfo(); ?>
When i point my FireFox browser to http://myBoxName/test.php, it only prompts me to save the file without displaying phpinfo.
Pls help me to use php with my apache2. Thanks in anticipation.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
David Hoeffer (d-hoeffer) said :
#1

This question seems to have duplicated itself for some reason :) I've answered over here: https://answers.launchpad.net/ubuntu/+source/php5/+question/50368

Can you help with this problem?

Provide an answer of your own, or ask uye for more information if necessary.

To post a message you must log in.