php.ini opened but not readed

From: Date: Mon, 29 Dec 2003 14:23:14 +0000
Subject: php.ini opened but not readed
Groups: php.general 
Request: Send a blank email to php-general+get-173425@lists.php.net to get a copy of this message
Hi.. I write because I did not found a solution to this problem anywhere else. I compiled php-4.3.4 and httpd-2.0.48 (Apache) on Solaris 8. I run it in a chrooted environment (/usr/local/chroot/www/) The problem I see is that the php.ini file is never readed. It is found, it is opened and closed, but never readed. Running strace (actually truss since the OS is Solaris 8) I get this: open("/apache2/conf/php-apache2handler.ini", O_RDONLY) Err#2 ENOENT
open("./php.ini", O_RDONLY)                     Err#2 ENOENT
open("/apache2/conf/php.ini", O_RDONLY)         = 473
close(473)                                      = 0
open("/etc/services", O_RDONLY)                 Err#2 ENOENT
stat("/apache2/lib/nss_nis.so.1", 0xFFBEEECC) Err#2 ENOENT As far as I see that means the file /apache2/conf/php.ini if found, opened and inmidiatly close. Never read... what do you think could be the problem? File permission looks OK. Some other info: that happens using the libphp4, but not the command line php. truss using the command line php shows this:
open("/apache2/conf/php.ini", O_RDONLY)         = 3
pathconf(".", _PC_PATH_MAX)                     = 1024
stat64("./", 0xFFBEEBA8)                        = 0
stat64("/", 0xFFBEEB10)                         = 0
open64("./../", O_RDONLY|O_NDELAY)              = 4
fcntl(4, F_SETFD, 0x00000001)                   = 0
fstat64(4, 0xFFBEE130)                          = 0
fstat64(4, 0xFFBEEBA8)                          = 0
close(4)                                        = 0
resolvepath("/apache2/conf/php.ini", "/apache2/conf/php.ini", 1024) = 21
brk(0x0029B7F8)                                 = 0
brk(0x0029F7F8)                                 = 0
fstat64(3, 0xFFBEE4D0)                          = 0
brk(0x0029F7F8)                                 = 0
brk(0x002A17F8)                                 = 0
ioctl(3, TCGETA, 0xFFBEE45C)                    Err#25 ENOTTY
read(3, " [ P H P ]\n\n ; ; ; ; ;".., 8192)     = 8192
read(3, " Y\n ;   e n v i r o n m".., 8192)     = 8192
read(3, " e t   i t   t o   b e  ".., 8192)     = 8192
read(3, " n d   o f   c o u r s e".., 8192)     = 8192
brk(0x002A17F8)                                 = 0
brk(0x002A37F8)                                 = 0
read(3, " s e r ' s   h i s t o r".., 8192)     = 5918
read(3, 0x0029E5EC, 8192)                       = 0
llseek(3, 0, SEEK_CUR)                          = 38686
close(3) and the directives are readed. Any help would be very welcome since I am really lost :-| Thanks...

« previous php.general (#173425) next »