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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:49:03+00:00 2026-06-09T22:49:03+00:00

I am trying to set up Apache to work with PHP. It seems to

  • 0

I am trying to set up Apache to work with PHP. It seems to be working because I can run a file index.php from my “example” directory which is within htdocs in Apache. However, when I look at the Configuration File (php.ini) Path on the phpinfo() screen it does not match what I have in httpd.conf. Also, my modules that are turned on within my php.ini file are not set to enabled.

So I think it is not getting my php.ini. On the phpinfo() screen it says the Path is C:\Windows.

In my httpd file in the conf directory of Apache I have this:

.
.
.
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule php5_module C:/php/php5apache2_2.dll
PHPIniDir "C:/php/"

All of these files exist. However this is not even a php.ini at C:\Windows.

You may say that maybe my httpd.conf file isn’t being read. However, if I change the php5_module line to something like

LoadModule php5_module C:/php/incorect.dll

Apache fails to start up. So this is being read. Just my php.ini isn’t being read. Why? Thanks for the help!

EDIT: Also want to mention, on the phpinfo() screen,
Loaded Configuration File is displaying as (none). Not sure what this is even talking about, but just some more insight to those of you who do.

Oh, and PHP version is 5.4.6.

EDIT 2:
Windows Version: Windows 7 Professional
Service Pack: Service Pack 1

  • 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-06-09T22:49:05+00:00Added an answer on June 9, 2026 at 10:49 pm

    Change:

    PHPIniDir "C:/php/"
    

    To:

    PHPIniDir "C:/php"
    

    Load module:

    LoadModule php5_module "c:/php/php5apache2_2.dll"
    

    Add PHP handler:

    AddHandler application/x-httpd-php .php
    

    Update directory index (optionally):

    DirectoryIndex index.php index.html
    

    Include “c:\php” to the end of your Path variable.

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

Sidebar

Related Questions

I'm trying to set up WAMP server. I've got Apache working correctly, and I've
I'm trying to migrate a working ExpressionEngine installation from an Apache environment over to
I'm trying to set an Alias in Apache to use for PHP files where
I'm trying to set up an apache server to show a map for FlightGear
I'm trying to set Excel cell colors using Apache POI in Java. I played
I am trying to set my user agent string in the HttpClient apache object
I'm aware of the Apache directives MaxClients and ListenBacklog . I'm trying to set
I have a PHP-based web app that I'm trying to apply Apache's mod_rewrite to.
I am trying to set open_basedir in php.ini globally to /tmp/ so that I
I'm trying to access CodeIgniter URLs without 'index.php'. Here's the steps I've taken: Checked

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.