Following the advice of some ALUGers in a previous thread I am in the process of upgrading our fileserver to Ubuntu 7.04.
I have successfully installed Ubutu on it and then apt-get installed the modules "apache" and "php5-mysql".
I have created a simple three line "hello world" PHP prog and saved it in /var/www as hello.php :
root@wildebeest:/var/www# cat hello.php <?php echo "Hello World"; ?>
If I type the URL http://localhost/ into firefox I see the default apache index.html holding page as expected (so I know apache is running). If however I type the URL http://localhost/hello.php a box pops up in Firefox saying:
"You have chosen to open: hello.php Which is a: PHP script From: http://localhost What should Firefox do with this file? 1. Open with gedit (default) 2. Save to disc."
Why doesn't Firefox simply display hello.php as a webpage? What am I doing wrong? Do I need to configure something in apache and/or Firefox to display php files as webpages?
Any help welcome!
Sagr.