LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Return of the core files

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2008, 12:20 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
Default Return of the core files

looks like from the last versions of lsws and php sapi that the core file thng is back, multiple gbit core files taking over all disk space.

Php thing or not. I have core files disabled in limits.conf and it still does it!

core files are disabled in lsws admin as well.

I know Ive heard from here this is a "php" problem not a litespeed problem but Ive yet to see this on an a webserver running apache or lighttpd. I got people whos disk space is running out in minutes.

Looking at the stack its usually bus error or signal something from lsphp5. Only seems to be happening on 64 bit servers.

Now for real guys you got to help find a solution for this, I know Im not the only one its happening to. Last few weeks has been spent monitoring peoples folders for these things and deleting them.

So please, without blaming php please help find a solution on these core dumps.
Reply With Quote
  #2  
Old 06-05-2008, 01:11 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
We will not able to fix a php internal bug, which we believe it is the root cause of the core dump. However, if you do not want to have lsphp stop producing core dump files any more, the solution is easy.

Just add the following code to LSAPI_Init_Env_Parameters() function in sapi/litespeed/lsapilib.c, the location is not important, we added it below the code that tests "LSAPI_AVOID_FORK".
Code:
    p = getenv( "LSAPI_ALLOW_CORE_DUMP" );
    if ( !p )
    {
        struct rlimit limit = { 0, 0};
        setrlimit( RLIMIT_CORE, &limit );
    }

Then run "make" under php-5.2.6/ directory to build your lsphp binary again. then copy sapi/litespeed/php over to lsws/fcgi-bin/lsphp-5.2.6

However, this solution only stop the core file, but the PHP will still crash.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:53 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.