PHP 4.0 Bug #8066 Updated: php.ini file not accessible via symbolic link
| From: | sniper@php.net | Date: | Tue, 30 Jan 2001 09:25:23 +0000 |
| Subject: | PHP 4.0 Bug #8066 Updated: php.ini file not accessible via symbolic link | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45341@lists.php.net to get a copy of this message | ||
ID: 8066
Updated by: sniper
Reported By: michael@auctionwatch.com
Old-Status: Feedback
Status: Closed
Bug Type: *Configuration Issues
Assigned To:
Comments:
No feedback.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-12 05:07:11] stas@php.net
It is impossible to specify php.ini in runtime, since it is
loaded before any PHP script has chance to execute. However,
in Apache you can modify default PHP settings with php_value
directives using VirtualServer, Directory and Location blocks.
Waiting for your feedback on the issue.
---------------------------------------------------------------------------
[2000-12-11 12:09:42] michael@auctionwatch.com
1) I will attempt to duplicate the problem -- I will post an update with my results.
2) In my original report, I said I wanted to specify the php.ini file at *runtime* as opposed to at
compile time. I'm aware of the --with-config-file-path option :-)
---------------------------------------------------------------------------
[2000-12-11 05:22:48] stas@php.net
I fear you have some other problem here. Symlinks work with
php.ini just fine, as they do with almost every other Unix
program.
Also, there *is* an option to specify configuration file
path, it's --with-config-file-path.
Please, verify that you indeed have problem with this
setting and if so, please provide your configure line,
phpinfo() output and result of the "ls -l" on relevant files.
---------------------------------------------------------------------------
[2000-11-30 21:53:23] michael@auctionwatch.com
Since PHP 4 does not give us the option to specify a configuration file (e.g. php.ini) at runtime,
we decided that we would instead point CONFIGURATION_FILE_PATH at /etc and provide a symbolic link
from /etc/php.ini to /our/path/php-cluster.ini.
However, it appears that the config file reading routines will not traverse symbolic links. This
essentially breaks our ability to have cluster-specific ini files.
So, what we'd like to have fixed is the symlink traversal problem, and (more of an RFE) the
ability to specify the config file itself (not just the path) at runtime.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8066