ID: 20274
Comment by: jhalla at legion dot org
Reported By: fowler at csufresno dot edu
Status: Open
Bug Type: iPlanet related
Operating System: Solaris 8
PHP Version: 4CVS-2002-11-06
New Comment:
Solaris 8
iPlanet 6sp4
PHP 4.3
Same problem
This is a SERIOUS issue!!!
email me if you'd like to discuss, [EMAIL PROTECTED]
Previous Comments:
------------------------------------------------------------------------
[2003-02-18 10:02:19] webmaster at telearmenia dot net dot co
We are running php4.3.0 with Sun One Web Server 6.0sp5 on
Solaris 8. It was compiled with gcc 2.95.3 using './configure' \
'--with-nsapi=/path/to/iplanet/web/server' \
It compiled successfully and runs fine for a few hours or minutes but
accessing
pages soon reports the following:
==========
Warning: Unknown(/path/to/doc-root/index.php): failed to create
stream:
Too many open files in Unknown on line 0
Warning: Failed opening '/path/to/doc-root/index.php' for inclusion
(include_path='.:/usr/local/lib/php') in Unknown on line 0
==========
We increased our kernel file descriptor limit, but shows the same
mistake
A quick fix is to setup a cron job to restart the web server hourly,
but
this is not desired.
Please if someone can provide information with since this problem
solves
Thanks
------------------------------------------------------------------------
[2003-01-31 12:51:22] coneill at mpctc dot net
I have the same problem. I am running iPlanet 6sp3 Enterprise, Solaris
9, PHP 4.3.0. I get this error after
php executes some scripts a few times. I did not have this problem
yesterday with PHP 4.2.3. I don't have any output at this moment. I
just thought i would let you know the problem seems to be widespread.
------------------------------------------------------------------------
[2003-01-30 02:38:09] thetas at obs-nancay dot fr
with solaris 8 iplanet6.0sp5 php4.3.0
I have the same error
before, with solaris 8 iplanet 6.0sp4 php4.2.3, it works fine
but now if i install php4.2.1 or 4.2.3 i have "SIGSEGV 11 segmentation
violation" on my web server.
My configuration is :
gcc 3.2.1
bison 1.875
make 3.80
GNU m4 1.4
autoconf 2.57
automake 1.7.2
binutils 2.11.2
GNU sed 4.0
libtool 1.4
flex 2.5.4a
my configure option is :
./configure --with-nsapi=/path/to/iplanet/web/server'
--with-ldap=/path/to/ldap/ --with-mysql=/path/to/mysql -enable-libgcc
------------------------------------------------------------------------
[2003-01-29 11:16:28] diltsj at ae dot com
iPlanet 6sp4 Enterprise, Solaris 8, PHP 4.3.0. I get this error after
php executes a script a few times. This doesn't seem to reproduce
under any certain conditions, typically within a few hits though. I
have 4 other configurations running flawlessly. 2x Solaris 2.6
iPlanet Enterprise 6sp1 and 2x Solaris 8 iPlanet Enterprise 6sp3.
Could this be something with iPlanet's changes with sp4?
Warning:
Unknown(/local/home/cxadmin/content/Sites/Site01/
DocumentRoot/phpinfo.php):
failed to create stream: Too many open files in Unknown on line 0
Warning: Unknown(): Failed opening
'/local/home/cxadmin/content/Sites/Site01/DocumentRoot/
phpinfo.php' for
inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
MEASURES ALREADY TAKEN:
recompile of the php module ('./configure' '--without-mysql'
'--with-nsapi=/local/Netscape/iplanet/www6.0sp4' '--enable-track-
vars'
'--enable-libgcc' )
Upped the Hard File Descriptor to 7554
explicitly set include path, session.save path, and safe_mode
ENVIRONMENT:
We have this running with out a hitch on two other boxes, under a
similar config, with the exception of there are two instances of
iPlanet running on the box that keeps crashing.
CODE:
// Logic To Decide Which Image To Include
$DESIGN;
if ($SEL == 1) {
$DESIGN="design_1.jpg";
}
else if ($SEL == 2) {
$DESIGN="design_2.jpg";
}
else if ($SEL == 3) {
$DESIGN="design_3.jpg";
}
else if ($SEL == 4) {
$DESIGN="design_4.jpg";
}
else if ($SEL == 5 ) {
$DESIGN="design_5.jpg";
}
else {
$DESIGN="design_6.jpg";
}
//Email Headers
$headers .= "From: ".$FNAME."<".$FEML.">\n";
$headers .= "X-Sender: <".$FEML.">\n";
$headers .= "X-Mailer: <".$FNAME.">\n";
$headers .= "Return-Path: <".$FEML.">\n";
$headers .= "Content-Type: text/html";
// Display Header Content
$Message ="<TABLE WIDTH=548 Height=466 BORDER=0
CELLPADDING=0 CELLSPACING=0
bgcolor=#990000>\n";
$Message .="<tr colspan=3 valign=middle>\n";
...Other $Message Code Ommitted to save space
//Mail function (variables are passed from the from on the previous
page)
Globals are set to on
mail($TEML, $TNAME.", You Have An Message From ".$FNAME,
$Message,
$headers);
------------------------------------------------------------------------
[2003-01-21 19:14:06] fowler at csufresno dot edu
Increasing file descriptors only delays the problem.
Our script to monitor the problem reports the following:
Monitoring http://our.site.com
Attempting to contact instance, try # 0
Web server successfully contacted
Too many open files being reported. Likely PHP problem ...
=-=-=-=-=-=-=-=-=-=-= HTML RETURNED =-=-=-=-=-=-=-=-
HTTP/1.1 200 OK
Connection: close
Date: Wed, 22 Jan 2003 00:50:00 GMT
Server: Netscape-Enterprise/6.0
Content-Type: text/html
Client-Date: Wed, 22 Jan 2003 00:50:01 GMT
Client-Peer: 192.10.1.2:80
X-Powered-By: PHP/4.3.0
<br />
<b>Warning</b>: Unknown(/site/web/index.php): failed to create stream:
Too many open files in <b>Unknown</b> on
line <b>0</b><br />
<br />
<b>Warning</b>: Unknown(): Failed opening '/site/web/index.php' for
inclusion
(include_path='.:/usr/local/lib/php') in <b>Unknown</b> on line
<b>0</b><br />
Shutting down server with script: /web/https-web-server/stop
Restarting server with script: /web/https-web-server/start
done.
Attempting to contact instance, try # 1
Web server successfully contacted
PHP problems resolved by restarting web server
Where can I go from here?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20274
--
Edit this bug report at http://bugs.php.net/?id=20274&edit=1