|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2003-12-28 19:06 UTC] cmouse at youzen dot projectb2 dot net
 Description: ------------ php.ini appears not to be read properly by php. I've tried changing values on the file stated by phpinfo() to be the one to read. Unfortunately after restart of apache, no changes reflect. F.ex. I have upload_tmp_dir set to a path, but phpinfo() claims that it's not set. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
The problem was that PHP tells me it is using /etc/php/php.ini as FILE, when this is PATH. Suprise suprise, it tries to read /etc/php/php.ini/php.ini, which is not what I expected. A more clearer configure item would be nice (and output of phpinfo()): The strace readout: $ strace -eopen php -r '' 2>&1 | grep ini open("php/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/php/php.ini/php-cli.ini", O_RDONLY) = -1 ENOTDIR (Not a directory) open("php/php.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/php/php.ini/php.ini", O_RDONLY) = -1 ENOTDIR (Not a directory)