[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2008-11-09
1
Medium Priority
?
795 Views
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

installed:
libapache2-mod-php5  etc



0
Comment
Question by:iskibinska
1 Comment
 
LVL 3

Accepted Solution

by:
ovi_mihai earned 2000 total points
ID: 22919857
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
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…
Suggested Courses
Course of the Month18 days, 14 hours left to enroll

834 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