title: Apache 2.2 phpinfo() Configuration File (php.ini) Path doesn't match httpd.conf
body: <p>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.</p>
  
  <p>So I think it is not getting my php.ini. On the phpinfo() screen it says the Path is C:\Windows.</p>
  
  <p>In my httpd file in the conf directory of Apache I have this:</p>
  
  <pre><code>.
  .
  .
  #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  LoadModule php5_module C:/php/php5apache2_2.dll
  PHPIniDir "C:/php/"
  </code></pre>
  
  <p>All of these files exist. However this is not even a php.ini at C:\Windows.</p>
  
  <p>You may say that maybe my httpd.conf file isn't being read. However, if I change the php5_module line to something like</p>
  
  <pre><code>LoadModule php5_module C:/php/incorect.dll
  </code></pre>
  
  <p>Apache fails to start up. So this is being read. Just my php.ini isn't being read. Why? Thanks for the help!</p>
  
  <p><strong>EDIT:</strong> 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.</p>
  
  <p>Oh, and PHP version is 5.4.6.</p>
  
  <p><strong>EDIT 2:</strong> 
  Windows Version: Windows 7 Professional
  Service Pack: Service Pack 1</p>