I am trying to configure Apache to work with PHP. It seems to work because I can run the index.php file from my "sample" directory, which is inside htdocs in Apache. However, when I look at the Configuration File Path (php.ini) on the phpinfo () screen, it does not match what I have in httpd.conf. Also, my modules included inside my php.ini file are not included.
So, I think this is not getting my php.ini. The phpinfo () screen indicates that the path is C: \ Windows.
In my httpd file in the Apache conf directory, I have the following:
.
.
.
LoadModule php5_module C:/php/php5apache2_2.dll
PHPIniDir "C:/php/"
All of these files exist. However, this is not even php.ini in C: \ Windows.
You can say that maybe my httpd.conf file is not readable. However, if I change the php5_module line to something like
LoadModule php5_module C:/php/incorect.dll
Apache does not start. So this is readable. Just my php.ini is not readable. What for? Thanks for the help!
EDIT: I also want to note that on the phpinfo () screen, the loaded configuration file is displayed as (none). Not sure what this even says, but just more insight for those of you who do it.
Oh, and the PHP version is 5.4.6.
EDIT 2:
Windows Version: Windows 7 Professional Service Pack: Service Pack 1
source
share