php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8066 php.ini file not accessible via symbolic link
Submitted: 2000-11-30 21:53 UTC Modified: 2001-01-30 04:25 UTC
From: michael at auctionwatch dot com Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.0.3pl1 OS: Linux glibc 2.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michael at auctionwatch dot com
New email:
PHP Version: OS:

 

 [2000-11-30 21:53 UTC] michael at auctionwatch dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-11 05:22 UTC] 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-12-11 12:09 UTC] michael at auctionwatch dot 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-12 05:07 UTC] 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.
 [2001-01-30 04:25 UTC] sniper@php.net
No feedback. 

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 20:01:31 2024 UTC