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 7522175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:26:44+00:00 2026-05-30T02:26:44+00:00

I have installed Apache 2.2 and PHP5 in my laptop. Apache seems to work

  • 0

I have installed Apache 2.2 and PHP5 in my laptop. Apache seems to work fine. When I view a php page the text in the html body section displays fine but the php section does not get displayed at all. I am thinking I must have missed some entry in the apache config file to tell it where PHP is installed?

Apache c:\server\apache2
PHP c:=Program Files\PHP

simple example

    <html>
    <body>
     See this line
     <?php
     echo "Hello World";
     ?>
     </body>
     </html>

Can anyone offer some suggestion?

Thanks
Dan

  • 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-30T02:26:46+00:00Added an answer on May 30, 2026 at 2:26 am

    You need to tell Apache to load the php5 module and the mime types. In httpd.conf add:

    LoadModule php5_module "c:/path/to/php5apache2_2.dll"
    AddHandler application/x-httpd-php .php
    

    then restart Apache.

    see: http://php.net/manual/en/install.windows.apache2.php

    Alternatively just use a pre-configured solution like WAMP

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

Sidebar

Related Questions

I have just installed CentOS, Apache and PHP. When I visit my site http://example.com/myapp/
i have installed apache 2.2, php5, mysql separately and as far as they are
I am using Windows XP SP3. I have installed Apache 2.2.9 followed by PHP
I have installed WAMP 2.1 on Windows 7 with PHP-5.3.4 and Apache-2.2.17 but instead
I have PHP 5.2.14 installed on a Windows box (installed via .msi) using Apache
I'm on Windows 7 and I have installed Apache 2.2, PHP 5 (latest stable
I have Memcache installed and working for PHP apps run through Apache (v2.2) but
Summary: I have PHP(5.3.8) installed as an Apache Module, and installed APC via PECL.
I have installed Apache and Subversion on Windows. My config is: <Location /svn> DAV
I have Apache installed with the XAMPP package, and I'm working locally. I have

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.