php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16623 Apache2 and php.ini path
Submitted: 2002-04-15 13:53 UTC Modified: 2002-04-19 11:34 UTC
From: izi at club-internet dot fr Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.0 OS: WIN XP PRO
Private report: No CVE-ID: None
 [2002-04-15 13:53 UTC] izi at club-internet dot fr
Here's the problem :
with apache 1.3.x and any php version (including the latest) I was able to have my php.ini in another location than the %WINDIR%, for example if my apache.exe was in E:/server/apache, i put the php4ts.dll and the php.ini there and in the phpinfo(), the php.ini path is E:/server/apache/php.ini. 
But with Apache 2.0.35 and the apache2filter the php.ini path is always c:\winnt even if this directory doesn't exists ! If i place the php.ini in the windows directory, then it's ok, but i would like to place it in the apache directory cause it's very usefull for shared hosting (each apache service can have it's own php config).
Hope you understand and sorry for my frenglish...  

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-19 11:19 UTC] aaron@php.net
This bug has been fixed in CVS.

A new apache directive has been added (in PHP HEAD CVS):
PHPINIDir

With this directive you can specify the path where
your php.ini exists. Please report back if you have
success with this. Thank you for using PHP/Apache.
 [2002-04-19 11:34 UTC] sniper@php.net
Fixed -> closed.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 24 06:03:37 2021 UTC