question on my Apache 2.2.4/PHP 5.2.3 installation

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
tmazdc23
Forum Newbie
Posts: 3
Joined: Thu Jul 05, 2007 11:53 pm

question on my Apache 2.2.4/PHP 5.2.3 installation

Post 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.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post 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).
tmazdc23
Forum Newbie
Posts: 3
Joined: Thu Jul 05, 2007 11:53 pm

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
tmazdc23
Forum Newbie
Posts: 3
Joined: Thu Jul 05, 2007 11:53 pm

Post by tmazdc23 »

Ah, OK. Thanks a lot.
Post Reply