php.ini opened but not readed

This is a discussion on php.ini opened but not readed within the PHP General forums, part of the PHP Programming Forums category; Hi.. I write because I did not found a solution to this problem anywhere else. I compiled php-4.3....


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-29-2003
Unknown Sender
 
Posts: n/a
Default php.ini opened but not readed

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...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:21 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0