not really helpping fix the problem but just an interesting observation. I installed phpmyadmin and mysql server using aptget, it picked up apache2 as a dependency and seemed to confiigure everything for me. I guess the difference is that you installed apache first.
On 7/27/07, mephi matthew.j.green@ntlworld.com wrote:
At first glance, it looks like it's an Apache config problem.
I googled for "apache php ubuntu" and it came up with this: http://www.cwassall.co.uk/pages/linux/ubuntu-server.html
This makes it look like you've got to edit the /etc/apache2/apache2.conf and the /etc/php5/apache2/php.ini files to properly 'link' php5 to apache.
Matt
-----Original Message----- From: main-bounces@lists.alug.org.uk [mailto:main-bounces@lists.alug.org.uk] On Behalf Of sagr Sent: 27 July 2007 21:26 To: main@lists.alug.org.uk Subject: [ALUG] Problem getting Apache/Firefox to display PHP webpages
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?
- Open with gedit (default)
- 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.
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!