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

Posted on 2008-11-09
Last Modified: 2013-12-13
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

libapache2-mod-php5  etc

Question by:iskibinska
    1 Comment
    LVL 3

    Accepted Solution

    Does httpd.conf from apache contain:

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

    Can you post your httpd.conf and php.ini?

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now