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

  • Home
  • SEARCH
  • 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 4016256
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:43:05+00:00 2026-05-20T09:43:05+00:00

I have follow every step of setting up apache & php in Windows 7.

  • 0

I have follow every step of setting up apache & php in Windows 7.

I have the following set in the Httpd.conf:

LoadModule php5_module "C:/PHP/php5apache2_2.dll"


<IfModule mime_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .php
</IfModule>

PHPIniDir "C:/PHP/"

if it is .html, it displays no problem. (e.g. localhost/index.hmlt)
if it is .php, then it displays the source code (e.g. localhost/phpinfo.php in which phpinfo.php is:

I run the phpinfo.php in command line and there is no problem. it is the apache server that doesn’t recognized PHP. so what may be wrong?

  • 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-20T09:43:05+00:00Added an answer on May 20, 2026 at 9:43 am

    You are encasing the type code in the wrong module

    <IfModule mime_module>
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .php
    </IfModule>
    

    should be

    <IfModule php5_module.c>
      AddType application/x-httpd-php .php .phtml .php3
      AddType application/x-httpd-php-source .phps
    </IfModule> 
    

    most distributions will include a php config file that does this for you in the correct way

    DC

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/ to install & config apache get
My given problem is follow: I have an object with x columns and every
i have follow taxomony has been set up: accommodation -backpacker -guest -holiday and i
I have a cucumber step that recently started failing when an &nbsp; was added
I have an application that iterates over an array every step and I seem
I have been trying to follow this tutorial: http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ . It is to create
I have the follow script that uploads and image and a thumbnail to a
I have the follow code: @synthesize property1; @synthesize property2; @synthesize property3; @synthesize property4; I
I have the follow arrays: Array $eventos : Array ( [0] => Array (
I have the follow .htaccess inside upload directory: order allow,deny deny from all I

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.