Your message dated Fri, 8 Jan 2010 17:12:49 +0100
with message-id <[email protected]>
and subject line #443390: php5-cgi: -c config file settings overriden by global
config
has caused the Debian Bug report #443390,
regarding php5-cgi: -c config file settings overriden by global config
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
443390: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443390
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php5-cgi
Version: 5.2.0-8+etch7
Severity: normal
It would appear that php5-cgi reads the file specified by -c first,
parses it and then follows it up with the global config files
(/etc/php5/...). The end effect of this is that there is no way to
override the globals for, say, some site or some other use via this
option and as such makes it rather useless.
I confirmed this by running php5-cgi -c ... first and verifying the
config reported by phpinfo(). None of the desired changes were
registered. I then did an mv /etc/php5 /etc/php5.old and ran php5-cgi -c
... again and verified. The desired changes were present then.
I believe simply switching the order the config files are read/parsed
in would fix this.
-- System Information:
Debian Release: 4.0
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22.1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
--- End Message ---
--- Begin Message ---
Version: 5.2.6.dfsg.1-1+lenny4
r...@howl:/tmp# grep memory_limit /etc/php5/cli/php.ini
memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)
r...@howl:/tmp# cat php.ini
memory_limit = 64M ; Maximum amount of memory a script may consume (32MB)
r...@howl:/tmp# php5 -c php.ini -r 'phpinfo();' | grep memory
memory_limit => 64M => 64M
--
Ondřej Surý <[email protected]>
http://blog.rfc1925.org/
--- End Message ---