LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Bug Reports (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=9)
-   -   php/lsapi crash since 5.2.9 (http://www.litespeedtech.com/support/forum/showthread.php?t=3692)

jrmarino 01-17-2010 12:43 PM

php/lsapi crash since 5.2.9
 
Hi, my solaris 10 and openSolaris (nevada) servers have been running php 5.2.8 for a year using lsapi 4.8.

Today I attempted to upgrade php to 5.2.12. I also tried to upgrade to lsapi 5.0. The php file runs fine in "cli" mode, but it crashes when spawned. I'd seen this before, it was caused by one of the extensions and I just removed it. But I need all the extensions, so I need to know how to figure out what's causing this lsapi crash. I don't know what logs to look at.

I built all the releases, here are the results:

php 5.2.8 with lsapi 4.8 -- works
php 5.2.8 with lsapi 5.0 -- works
php 5.2.9 with lsapi 5.0 -- works
php 5.2.10 with lsapi 5.0 -- crashes
php 5.2.11 with lsapi 5.0 -- crashes
php 5.2.12 with lsapi 4.8 -- crashes
php 5.2.12 with lsapi 5.0 -- crashes


Please help. This has been a fairly frequent issue with the php executable that I compile, and I'd like to be able to upgrade to the latest version of php.

mistwang 01-17-2010 06:01 PM

Please try lsapi 5.1
http://www.litespeedtech.com/support...8063#post18063
If it still crashes, use lsapi 4.9

jrmarino 01-17-2010 11:26 PM

mistwang, I'd like to try this, but the instructions in post 18063 don't seem to apply to me.

I'm compiling PHP from scratch, using the PHP source code and putting the "litespeed" directory in the sapi directory of PHP, and compiling "--with-litespeed". I have never used lsws for building PHP.

Given that, I don't know how to turn on version 5.1 during compilation since I don't use the "buildconf.inc.php" file.

NiteWave 01-18-2010 12:15 AM

for manual build, if sapi/litespeed is lsapi 5.1, that's OK.

buildconf.inc.php is used by lsws web admin console to build php.

jrmarino 01-18-2010 07:30 AM

Well, I don't have the source code for LSAPI 5.1.

Where can I download it?

jrmarino 01-18-2010 07:33 AM

Oh, I see the downloads page was updated yesterday with version 5.1. It wasn't there in the morning.

That was my confusion -- you were talking about 5.1 when it didn't seem to be generally available!

jrmarino 01-18-2010 10:30 AM

Okay, I compiled 5.2.12 with LSAPI 5.1

No luck.
When I spawn lsapi, the lsphp process stays up. But as soon as I start the webserver, the lsphp process crashes. I'm using LSWS 3.3.23

mistwang 01-18-2010 11:00 AM

Do you use any opcode cache like eaccelerator? you may need to disable it with 5.2.12 .

jrmarino 01-18-2010 11:04 AM

I use APC with solaris 10, but the opensolaris server (my dev server) doesn't have any accelerator. So while APC may cause a crash, it's not causing this one because it's not on the server.

Is there any way to narrow down which extension is causing the crash (other than compiling dozens of times by removing extensions)? Is there any way to turn on any kind of logging or dump that could help you out?

mistwang 01-18-2010 11:14 AM

If you can make lsphp5 dump a core file, it will help.
You need to add LSAPI_ALLOW_CORE_DUMP in lsphp5 env.
http://www.litespeedtech.com/php-litespeed-sapi.html

ulimit -c should be high enough, the user that PHP run as should be able to write to that directory. And use "coreadm" command to manage core dump.


All times are GMT -7. The time now is 08:43 PM.