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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Shell function within PHP works on Apache but not Litespeed

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2013, 08:47 PM
MarkPW MarkPW is offline
Member
 
Join Date: Apr 2008
Posts: 20
Exclamation Shell function within PHP works on Apache but not Litespeed

I'm trying to run a java command within PHP through Litespeed but continually receive an error. However, the same script running on Apache returns the expected result.

Litespeed and Apache have identical PHP builds: 5.3.23.
Tried PHP suexec setting off and running as user

The script:
PHP Code:
<?php

passthru
('/usr/java/jdk1.7.0_17/bin/java -Xms20m -Xmx64m -version 2>&1');

?>
Litespeed output:
Code:
*** glibc detected *** /usr/java/jdk1.7.0_17/bin/java: double free or corruption (!prev): 0x00007f171c011630 *** *** glibc detected *** /usr/java/jdk1.7.0_17/bin/java: double free or corruption (fasttop): 0x00007f171c009ee0 *** *** glibc detected *** /usr/java/jdk1.7.0_17/bin/java: double free or corruption (!prev): 0x00007f171c011630 ***
Apache output:
Code:
java version "1.7.0_17" Java(TM) SE Runtime Environment (build 1.7.0_17-b02) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
If I execute the script on command line (/usr/local/lsws/lsphp5/bin/php) it works fine.

I am desperate to get this resolved and would appreciate any help.
Reply With Quote
  #2  
Old 04-13-2013, 12:15 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
please try raise the
Memory Soft Limit (bytes)
Memory Hard Limit (bytes)
of lsphp5 in admin console
Reply With Quote
  #3  
Old 04-13-2013, 08:41 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
Quote:
Upped security > external app limits and problem went away
Thanks, in particular, raised which limit? memory, CPU or process ?
Reply With Quote
  #4  
Old 04-13-2013, 10:05 AM
MarkPW MarkPW is offline
Member
 
Join Date: Apr 2008
Posts: 20
In Security tab, I set memory soft limit and hard limit to 0 and in lsphp5 the soft and hard limit to 1384M.

Will I face any issues having the config like this? On my old server from which I am migrating, settings were 250M soft and 300M hard memory limit and I had no problems executing the above shell command.

Thanks
Reply With Quote
  #5  
Old 04-13-2013, 08:38 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
those limits are to prevent bad processes to consume too many memory. if your server runs well without those limit, should be ok.

maybe java version etc different on old and new server?
/usr/java/jdk1.7.0_17/bin/java

how about your migrating progress ? is the high io issue gone on the new server?
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 01:29 AM.



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