Page 1 of 1

question on my Apache 2.2.4/PHP 5.2.3 installation

Posted: Thu Jul 05, 2007 11:55 pm
by tmazdc23
Hello... I was hoping that somebody could give me some advice as to how I could fix this issue with my installation of PHP 5.2.3 as a module of Apache 2.2.4 on my Windows XP Pro SP2 system:

I recently installed Apache 2.2.4 to C:/apache using the installer, then I manually installed PHP 5.2.3 into C:/apache/php. After configuring doc_root in my php.ini file accordingly, I set up PHP as a module for Apache by adding the following lines to my Apache httpd.conf configuration file:

LoadModule php5_module php/php5apache2_2.dll
AddType application/x-httpd-php .php
PHPIniDir php

While I didn't explicitly set these paths, ServerRoot in my configuration file is set as "C:\apache", so I figured that it shouldn't be an issue (for the record, I tried explicitly configuring the paths).

When I tested the installation, I obtained the following:

Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: C:\apache\php\php.ini

It appears as if php.ini loads properly, but Apache doesn't recognize the path that I specified to the php.ini file. While the installation appears to have worked, I don't understand why the path to php.ini doesn't read C:\apache\php. Does anybody have any suggestions as to how I can fix this issue?

Perhaps it isn't worth fixing, but it's driving me crazy...

Thanks a lot.

Posted: Fri Jul 06, 2007 8:11 am
by superdezign
Try putting a slash on the ini directory. See if it makes a difference.

Code: Select all

PHPIniDir php/
And try to keep the PHPIniDir directive as far up in the config file as possible (very close to the ServerRoot directive).

Posted: Fri Jul 06, 2007 9:04 pm
by tmazdc23
I tried both putting a slash on the ini directory and putting the directive further up in the config file, but unfortunately I didn't find any differences.

Posted: Sat Jul 07, 2007 6:10 am
by volka
Since php 5.2.2(?) Configuration File (php.ini) Path always shows the default path.
see http://cvs.php.net/viewvc.cgi/php-src/e ... 7&r2=1.278

Posted: Sat Jul 07, 2007 11:17 am
by tmazdc23
Ah, OK. Thanks a lot.