Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5980391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:47:39+00:00 2026-05-22T21:47:39+00:00

On my new Ubuntu system, I’ve managed to get Apache2 up and running for

  • 0

On my new Ubuntu system, I’ve managed to get Apache2 up and running for developing my ZendFramework Web Applications…

I’ve got my available-sites config working correctly because I am able to request localhost and it servers up the correct index.html from my specified directory.

Problem : if I request index.php, firefox attempts to download the file instead of running the script.

Any Ideas why this would happen?

I’ve added the following to httpd.conf but it hasn’t helped.

AddHandler application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml

AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:47:39+00:00Added an answer on May 22, 2026 at 9:47 pm

    If Firefox downloads your PHP files it means that your server doesn’t have PHP or the Apache PHP module installed.

    Have you installed the Apache PHP module?
    If not then install it by typing this into a terminal:

    sudo apt-get install libapache2-mod-php5
    

    And if yes, do you have your index.php located in /var/www/?

    Make sure to enable PHP with the command

    sudo a2enmod php5
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am pretty new to Ubuntu, but I can't seem to get this to
I am new to Ubuntu. Before, I used VS in Windows and develop applications
I never used CentOS, I only used Ubuntu, and I'm really new in web
I am very new to system kernel development. I am using Ubuntu 11.10, and
On my new Ubuntu system, I start a screen session and edit a file
I have a new install of Ubuntu and trying to use the php's mail()
At my new job I am doing rails development and I am on Ubuntu
I am setting up a new SVN server on Ubuntu Linux. Where is a
I am new to the mongo db.I just installed it over my ubuntu 11.04
I am new to asterisk. i am working under ubuntu 9.10. I use asterisk

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.