#34451 [Opn->Bgs]: PHP as Apache module doesn't respect PHPRC and PATH
| From: | rvt at ok dot ru | Date: | Sat, 10 Sep 2005 03:37:01 +0000 |
| Subject: | #34451 [Opn->Bgs]: PHP as Apache module doesn't respect PHPRC and PATH | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84819@lists.php.net to get a copy of this message | ||
ID: 34451
User updated by: rvt at ok dot ru
Reported By: rvt at ok dot ru
-Status: Open
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: Windows XP Pro (WinXP)
PHP Version: 4.4.0
New Comment:
Finally, it started to work after reboot, (!) not just log off. It
seems to me that the problem was beacuse apache runs under NT
AUTHORITY\SYSTEM user. It should reload its environment variables on OS
startup only :)
Be careful.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2005-09-10 04:54:58] rvt at ok dot ru
Description:
------------
Running PHP under Apache 1.3.33 as a server module, I couldn't take
advantage of using environment variables.
As described at
http://ru.php.net/manual/en/install.windows.manual.php:
-------------------------------------------------------
Previous editions of the manual suggest moving various ini and DLL
files into your SYSTEM (i.e. C:\WINDOWS) folder ... the preferred
method for installing PHP is to keep all PHP related files in one
directory and have this directory available to your systems PATH.
-------------------------------------------------------
Reproduce code:
---------------
My PHP installation resides in "c:\program files\php" along with
php.ini, php4ts.dll and other standard for PHP files and folders.
System environment variables are:
Path = c:\program files\php;c:\program files\php\dlls;c:\program
files\borland\VBroker\bin;C:\Program
Files\Borland\Delphi7\Bin;C:\Program
Files\Borland\Delphi7\Projects\Bpl;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program
Files\ATI Technologies\ATI Control Panel
PHPRC = c:\program files\php
Actual result:
--------------
Apache founds php4apache.dll in sapi directory, but
1) Apache does not start until php4ts.dll is in "sapi" or "windows"
directory or in the same one with apache.exe.
2) When php4ts.dll is in any directory from ones specified above,
Apache is launched but php.ini is not processed until resides in
"windows" directory or in the same one with apache.exe. When php.ini is
not processed, phpinfo() claims "C:\WINDOWS" as "Configuration File
(php.ini) Path".
3) When php4ts.dll and php.ini are found and there are extensions which
require additional dlls, these dlls are also not found (although, they
really are in "dlls" directory and the directory is in Path). For every
extension the "Unable to load dynamic library" message pops up with the
right path to the extension. (I use domxml, gettext, mhash and xslt)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34451&edit=1