Custom php.ini not loaded
Added by hypolite about 14 years ago
Hello,
I've been experiencing this problem since I've been using lighttpd + spawn-fcgi + php.
The value of post_max_size I put in /usr/php5/cgi/php.ini doesn't appear in the phpinfo. Is there some sort of cache I have to clear ?
It seems that certain directives are taken into account (like memory_limit or upload_max_filesize) but other don't (like post_max_size and max_execution_time), see phpinfo and php.ini below.
Anyone got this problem before ?
Thanks in advance !
OS : Debian Lenny
Lighttpd: 1.4.19
PHP : 5.2.6
Browser : All
Phpinfo : http://hypolite.org/phpinfo.php
php.ini : http://paste.lighttpd.net/1483
Replies (3)
RE: Custom php.ini not loaded - Added by nitrox about 14 years ago
Is that the only php.ini available? Look at phpinfo() and see what config file is used.
RE: Custom php.ini not loaded - Added by hypolite about 14 years ago
Thanks for your reply !
The phpinfo is available in my first post, here's the extract about configuration files used :
Configuration File (php.ini) Path /etc/php5/cgi Loaded Configuration File /etc/php5/cgi/php.ini Scan this dir for additional .ini files /etc/php5/cgi/conf.d Additional .ini files parsed /etc/php5/cgi/conf.d/apc.ini, /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/fileinfo.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini
The others php.ini available are /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini, but neither have the same value for post_max_size.
RE: Custom php.ini not loaded - Added by nitrox about 14 years ago
Might be due to post_max_size must be greater than upload_max_filesize. Don´t know if its actually checked, ignored or just a recommendation. Might also be a bug in that rather old version. Ask the php folks please.