• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 820
  • Last Modified:

ubuntu 8.04 installing php5 for apache2 - php page displayed on remote not on local

It seems that I have everything what is needed to install php module for Apache, but
it still wants to download a file when I type  /localhost/testphp   on the localhost.

It works though when called from a different pc in my local network

I did everything what is needed

I enabled php5 module:

 a2enmod php5
 sudo  etc/init.d/apache2 force-reload

added :
DirectoryIndex index.html index.php main.php

installed:
libapache2-mod-php5  etc



0
iskibinska
Asked:
iskibinska
1 Solution
 
ovi_mihaiCommented:
Does httpd.conf from apache contain:

LoadModule php5_module        modules/libphp5.so
AddHandler php5-script php
AddType text/html       php

Can you post your httpd.conf and php.ini?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now