#24657 [Dup->Bgs]: php.ini location different for CLI

From: Date: Tue, 15 Jul 2003 07:16:21 +0000
Subject: #24657 [Dup->Bgs]: php.ini location different for CLI
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355220@lists.php.net to get a copy of this message
ID: 24657 Updated by: sniper@php.net Reported By: phyre at rogers dot com -Status: Duplicate +Status: Bogus Bug Type: Documentation problem Operating System: Linux PHP Version: 4.3.2 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. .. Previous Comments: ------------------------------------------------------------------------ [2003-07-15 01:16:07] philip@php.net Duplicate of: http://bugs.php.net/bug.php?id=21783 ------------------------------------------------------------------------ [2003-07-15 01:01:15] helly@php.net man php ------------------------------------------------------------------------ [2003-07-15 00:59:21] derick@php.net I'm marking this as a documentation problem, as you can use php-cli.ini for specific settings for CLI. (Actually you can use php-<sapiname>.ini). I couldn't find docs for this though on line. ------------------------------------------------------------------------ [2003-07-14 23:10:36] phyre at rogers dot com Description: ------------ So, as many people I'm sure do, I require much different options (ie: safe mode, etc) for running under my web server than running from the command line, yet I can only choose one ini file. Various add-ons such as ZendDebugger I don't like starting up from the CLI. I assume it wouldn't be hard to add a --with-cli-config-file-path which works for the CLI only? I place php.ini in my apache config directory, which has restrictive rights. Hence, an end user can't load it. So PHP needs to be compiled in two pieces (I need to then make another build and ONLY install the CLI). Seems like this could be a simple fix and it seems to make sense. By default, it should point to the normal config path (--with-config-file-path). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24657&edit=1

« previous php.doc (#969355220) next »