Back Forum Reply New

Can't get PHP to work. (Apache)

Hi

I'm setting up a Linux webserver for the first time.

I have installed kubuntu edgy. I have installed the following packages through adept:apache
apache-common
apache2-common
apache2-mpm-prefork
apache2-utils
libapache2-mod-php5
php5
php5-common

When I visit  from : localhost/localhost/ things work as expected, i.e. I get a directory listing, and I can visit  from : localhost/localhost/apache2-default/ .

I have created /var/www/test.php with the following contents:
lt;?php phpinfo();?gt;

When I visit   from : localhost/localhost/test.php , my browser asks me the save the file, and when I examine the file, the contents has not been processed. I would expect the browser to display the php configuration information.

I have uncommented the following line in /etc/apache/fromd.conf, and /etc/apache2/apache2.confAddType application/x-fromd-php .php
AddType application/x-fromd-php-source .phps
and restarted apache, but it did not help.

Side question: why are there 2 config directories (/etc/apache/, and /etc/apache2/) and how do I which I should be editing?

Regards, Gary

Aghh - never mind - I fixed it by uninstalling apache, and installing apache2.

Gary
¥
Back Forum Reply New