PDA

View Full Version : 503 Service Unavilable After with to 3.3.10 , lsphp5 Fresh Installation


vivek
04-13-2008, 08:41 PM
Hello

I recently installed a fresh copy of lsws with php 5.2.4. Everything is working fine.

But since then one of our website , which is using Jooma, is showing 503 error

Check HERE (http://www.youthkerala.com/index.php?option=com_rsgallery2&Itemid=128&page=inline&id=494) and try to post a comment below.

I tried to increase the process soft and hard limit to even 1000 from the default vals 200. , but seems not working

Mistwang, you must be knowing why I recompiled and reinstalled litespeed.

Any help to fix it ?

Vivek

vivek
04-13-2008, 08:42 PM
[root@monster logs]# grep -i youthkerala.com error_log
2008-04-13 23:34:13.103 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 1
2008-04-13 23:34:13.103 [INFO] [APVH_youthkerala.comSuphp:] add child process pid: 10510
[root@monster logs]# grep -i youthkerala.com error_log
2008-04-13 23:34:13.103 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 1
2008-04-13 23:34:13.103 [INFO] [APVH_youthkerala.comSuphp:] add child process pid: 10510
2008-04-13 23:34:13.513 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] connection to [uds://tmp/lshttpd/APVH_youthkerala.com_Suphp.sock] on request #0, error: Connection reset by peer!
2008-04-13 23:34:13.535 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 2
2008-04-13 23:34:13.535 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] add child process pid: 10514
2008-04-13 23:34:13.535 [INFO] Pid: 10510 associated with [APVH_youthkerala.comSuphp:]
2008-04-13 23:34:13.535 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 1, pid stop list size: 0
2008-04-13 23:34:13.770 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] connection to [uds://tmp/lshttpd/APVH_youthkerala.com_Suphp.sock] on request #0, error: Connection reset by peer!
2008-04-13 23:34:13.790 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 2
2008-04-13 23:34:13.790 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] add child process pid: 10520
2008-04-13 23:34:13.790 [INFO] Pid: 10514 associated with [APVH_youthkerala.comSuphp:]
2008-04-13 23:34:13.790 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 1, pid stop list size: 0
2008-04-13 23:34:14.057 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] connection to [uds://tmp/lshttpd/APVH_youthkerala.com_Suphp.sock] on request #0, error: Connection reset by peer!
2008-04-13 23:34:14.057 [NOTICE] [116.68.66.194:53372-0#APVH_youthkerala.com] oops! 503 Service Unavailable
2008-04-13 23:34:14.057 [NOTICE] [116.68.66.194:53372-0#APVH_youthkerala.com] Content len: 123, Request line:
2008-04-13 23:34:14.057 [INFO] Pid: 10520 associated with [APVH_youthkerala.comSuphp:]
2008-04-13 23:34:14.057 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 0, pid stop list size: 0
2008-04-13 23:34:14.057 [NOTICE] [APVH_youthkerala.comSuphp:] stop worker processes
[root@monster logs]# grep -i youthkerala.com stderr.log
[root@monster logs]#

vivek
04-13-2008, 08:43 PM
I tried with both suPHP enabled and disabled.

mistwang
04-13-2008, 09:45 PM
enabled suEXEC, and strace lsphp5 process to find out why, maybe the process crashed, or missing a required PHP module.

vivek
04-13-2008, 09:58 PM
enabled suEXEC, and strace lsphp5 process to find out why, maybe the process crashed, or missing a required PHP module.

suEXEC is already enabled. then what to do ? Can you take a look at this ?

vivek
04-13-2008, 10:20 PM
Now,

What is this mail ?

lfd: Excessive resource usage: server (492)

Time: Mon Apr 14 00:18:53 2008
Account: server
Resource: Virtual Memory Size
Exceeded: 111 > 100 (MB)
Executable: /home/lsws/fcgi-bin/lsphp-5.2.4
Command Line: lsphp5
PID: 492
Killed: No



I cant find any option in External App with 100M . How do I increase it ?

mistwang
04-14-2008, 06:33 AM
Memory soft/hard limit for lsphp5 external app. I am not sure it is limited by the system or not though.

Also need to check why it use more than 100MB for a joomla site, allocate too much memory for opcode cache or something else.

vivek
04-14-2008, 11:36 AM
Memory soft/hard limit for lsphp5 external app. I am not sure it is limited by the system or not though.

Also need to check why it use more than 100MB for a joomla site, allocate too much memory for opcode cache or something else.
This email is not regrding the joomla site. Its regarding another domain.

mistwang
04-14-2008, 12:16 PM
What is this mail ?

lfd: Excessive resource usage: server (492)

Time: Mon Apr 14 00:18:53 2008
Account: server
Resource: Virtual Memory Size
Exceeded: 111 > 100 (MB)
Executable: /home/lsws/fcgi-bin/lsphp-5.2.4
Command Line: lsphp5
PID: 492
Killed: No

I cant find any option in External App with 100M . How do I increase it ?

I think this email is sent by lfd, 100 MB probably is a configuration for lfd script.

vivek
04-15-2008, 05:45 AM
Any reply for the first post ?

mistwang
04-15-2008, 07:13 AM
Any reply for the first post ?

did already.

strace lsphp5 process to find out why, maybe the process crashed, or missing a required PHP module.

vivek
04-25-2008, 07:54 PM
did already.

strace lsphp5 process to find out why, maybe the process crashed, or missing a required PHP module.

I dont know how to strace etc, Please help me.

vivek
04-25-2008, 08:03 PM
I cant believe that the litespeed's default configuraiton isnt good for even a joomla website

A user can't register for a new account or cant login with the existing account

http://www.youthkerala.com/index.php?option=com_secureregistration&task=register


It shows 503 service unavailable

mistwang
04-25-2008, 08:14 PM
find out the pid of the suexec lsphp5 process for that users.
then do
strace -p <pid>

vivek
04-26-2008, 08:39 AM
[root@monster esmartci]# strace -p 3597
Process 3597 attached - interrupt to quit
select(5, [4], NULL, NULL, {0, 472000}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
brk(0xf03000) = 0xf03000
brk(0xeee000) = 0xeee000
shmdt(0x2a96823000) = 0
shmctl(614760483, IPC_RMID, 0x7fbffffc70) = -1 EINVAL (Invalid argument)
close(3) = 0
munmap(0x2a968a3000, 4096) = 0
unlink("/tmp/ZCUDfyr58P") = -1 ENOENT (No such file or directory)
munmap(0x2a961a1000, 1928824) = 0
munmap(0x2a96378000, 1058608) = 0
munmap(0x2a96597000, 2668464) = 0
munmap(0x2a96160000, 266240) = 0
exit_group(0) = ?
Process 3597 detached

mistwang
04-26-2008, 12:54 PM
this is a idle PHP process, you have fire a request that produced 503 error, and the PHP process is serving the request.

vivek
04-26-2008, 06:04 PM
:confused:

mistwang
04-26-2008, 06:47 PM
After you start to strace the process, send a request that result in 503 error, strace will dump all system calls involved with processing that request. And you should be able to find out why PHP failed to process that request based on the output.

vivek
04-26-2008, 07:49 PM
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/controller", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/controller/compressor.php", {st_mode=S_IFREG|0644, st_size=23695, ...}) = 0
open("/home/youth/public_html/home/mambots/system/php_speedy/controller/compressor.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=23695, ...}) = 0
fcntl(6, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)

fstat(6, {st_mode=S_IFREG|0644, st_size=23695, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99c84000
lseek(6, 0, SEEK_CUR) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, "<?php\r\n/**\r\n * Gzips and minifie"..., 4096) = 4096
lseek(6, 4096, SEEK_SET) = 4096
read(6, " \'type\'=>\'text/javascript\',"..., 4096) = 4096
read(6, "t\'] = $options[\'ext\'];\r\n\t\t\r\n\t\t//"..., 8192) = 8192
read(6, ");\r\n\t\r\n\tforeach($types AS $type)"..., 8192) = 7311
read(6, "", 4096) = 0
read(6, "", 8192) = 0
read(6, "", 8192) = 0
close(6) = 0
munmap(0x2a99c84000, 4096) = 0
open("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
mmap(NULL, 3833, PROT_READ, MAP_SHARED, 6, 0) = 0x2a99c84000
munmap(0x2a99c84000, 3833) = 0
close(6) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
open("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
fcntl(6, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(6, {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99c84000
lseek(6, 0, SEEK_CUR) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, "<?php\r\n/**\r\n * Very basic templa"..., 4096) = 3833
lseek(6, 3833, SEEK_SET) = 3833
read(6, "", 4096) = 0
read(6, "", 8192) = 0
read(6, "", 8192) = 0
close(6) = 0
munmap(0x2a99c84000, 4096) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
access("/home/youth/public_html", F_OK) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0

vivek
04-26-2008, 07:50 PM
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
open("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0

open("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
mmap(NULL, 8029, PROT_READ, MAP_SHARED, 7, 0) = 0x2a99c84000
munmap(0x2a99c84000, 8029) = 0
close(7) = 0
fcntl(6, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(6, {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99c84000
lseek(6, 0, SEEK_CUR) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, "<?php\r\n/**\r\n * jsmin.php - PHP i"..., 4096) = 4096
lseek(6, 4096, SEEK_SET) = 4096
read(6, " }\r\n elsei"..., 4096) = 3933
read(6, "", 4096) = 0
read(6, "", 8192) = 0
read(6, "", 8192) = 0
close(6) = 0
munmap(0x2a99c84000, 4096) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0

vivek
04-26-2008, 07:51 PM
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
access("/home/youth/public_html", F_OK) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/language", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/language/malayalam.php", {st_mode=S_IFREG|0644, st_size=53950, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0

lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/language", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/language/malayalam.php", {st_mode=S_IFREG|0644, st_size=53950, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/language", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/language/malayalam.php", {st_mode=S_IFREG|0644, st_size=53950, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/language", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/language/malayalam.php", {st_mode=S_IFREG|0644, st_size=53950, ...}) = 0
open("/home/youth/public_html/home/language/malayalam.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=53950, ...}) = 0
open("/home/youth/public_html/home/language/malayalam.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=53950, ...}) = 0
mmap(NULL, 53950, PROT_READ, MAP_SHARED, 7, 0) = 0x2a99c84000
munmap(0x2a99c84000, 53950) = 0
close(7) = 0
fcntl(6, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(6, {st_mode=S_IFREG|0644, st_size=53950, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99c84000
lseek(6, 0, SEEK_CUR) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, "<?php\r\n/**\r\n* @version $Id: mala"..., 4096) = 4096
lseek(6, 4096, SEEK_SET) = 4096
read(6, "NE(\'_CMN_UNARCHIVE\',\'\340\264\206\340\264\260\3 40\265\215\342\200"..., 4096) = 4096
read(6, "\225\340\265\215\340\264\225\340\265\201\340\264\2 50\340\265\215\340\264\250\340\265\201.</b></fon"..., 8192) = 8192
read(6, "NE(\'_EMAIL_MSG\',\'%s \340\264\265\340\265\206\340\264\254\340\265\215"..., 8192) = 8192
read(6, "\252\340\265\206\340\264\237\340\265\201\340\264\2 44\340\265\215\340\264\244\340\264\262\340\265\215 \342\200\215\');\r"..., 8192) = 8192
read(6, "\237\340\265\215\340\264\237 %s,\r\n\r\n%s -\340\264\262\340\265\215\342\200\215 \340\264\222"..., 8192) = 8192
read(6, "ate to appear in your site\r\n*\r\n*"..., 8192) = 8192
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99c85000
read(6, "ks */\r\nDEFINE(\'_WEBLINKS_TITLE\',"..., 8192) = 4798
read(6, "", 4096) = 0
read(6, "", 8192) = 0
read(6, "", 8192) = 0
close(6) = 0
munmap(0x2a99c84000, 4096) = 0
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0
write(5, "d\0\0\0\3SELECT id, name, username, "..., 104) = 104
read(5, "\1\0\0\1\0077\0\0\2\3def\vyouth_joom1\tjos_us"..., 16384) = 571
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0
write(5, "\305\0\0\0\3SELECT g.*\nFROM jos_core_ac"..., 201) = 201
read(5, "\1\0\0\1\5I\0\0\2\3def\vyouth_joom1\1g\27jos_"..., 16384) = 408
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0
write(5, "\266\0\0\0\3SELECT COUNT(*)\nFROM jos_co"..., 186) = 186
read(5, "\1\0\0\1\1\36\0\0\2\3def\0\0\0\10COUNT(*)\0\f?\0\2 5\0\0"..., 16384) = 63
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0
write(5, "\272\0\0\0\3SELECT COUNT(*)\nFROM jos_co"..., 190) = 190
read(5, "\1\0\0\1\1\36\0\0\2\3def\0\0\0\10COUNT(*)\0\f?\0\2 5\0\0"..., 16384) = 63
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0
write(5, "\255\0\0\0\3UPDATE jos_session SET `tim"..., 177) = 177
read(5, "0\0\0\1\0\1\0\2\0\1\0(Rows matched: 1 Cha"..., 16384) = 52
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0
write(5, "\225\0\0\0\3DELETE FROM jos_session\n WH"..., 153) = 153
read(5, "\7\0\0\1\0\0\0\2\0\0\0", 16384) = 11
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0
write(5, "K\0\0\0\3UPDATE jos_users\n SET lastv"..., 79) = 79
read(5, "0\0\0\1\0\1\0\2\0\0\0(Rows matched: 1 Cha"..., 16384) = 52
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99d06000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99d47000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99d88000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99dc9000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99e0a000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99e4b000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99e8c000
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99ecd000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99f4e000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99f8f000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99fd0000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 30631 detached

mistwang
04-26-2008, 08:27 PM
It might be a memory limt problem. You can try increase the memory soft/hard limit for lsphp external app. If it deos not help, you may have to rebuild you PHP binary again matching the configuration parameters used by Apache mod_php.

vivek
04-26-2008, 08:55 PM
Soft/hard limit increased to 1GB/2GB . Still same.
As far as I know, I built the php binary using the same parameters of apache mo_php. Please explain what do you mean by this. :(

mistwang
04-26-2008, 09:26 PM
It is a PHP internal problem.
You can try GDB the PHP process as well.

gdb /home/lsws/fcgi-bin/lsphp5 <pid_of_lsphp>
(gdb) cont

Then send the problemtic request, gdb will stop at the crash point, then type command "bt" from gdb. It shows you PHP crash point, with this information you should be able to find the module that cuases the problem or file a bug report to PHP group.


you need to compare the phpinfo page produced by apache mod_php and lsphp, there should be something different.

You can also try disable PHP suEXEC see if the problem goes away, if it does, there is a permission problem somewhere.

MindTooth
04-27-2008, 07:51 AM
Would also recommend using Pastebin (http://pastebin.com/) to show us the log.

Birger :)