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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > [solved] Cpanel + LSAPI 6.0 + LSWS 4.2 Anomaly

Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2012, 08:41 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Default [solved] Cpanel + LSAPI 6.0 + LSWS 4.2 Anomaly

is it true that LSAPI 6.0 using much more swap than LSAPI 5.5?
the left one is still using LSAPI 5.5 :



Uploaded with ImageShack.us

after using LSAPI 6.0 I have to raise up externall app >> lsphp5 >> memory soft/hard limit to at least 505 Mb to avoid randomly "Fatal error: Out of memory"
change from "Run On Start Up" to "suEXEC daemon" are the same on result on memory cost.



and for lsws 4.2, it cannot compile php 5.3.x through WHM while using it :



Uploaded with ImageShack.us

so it force me to use LSWS 4.1.13 with LSAPI 6.0 until now.
is there anyway I can recompile php using the old LSAPI 5.5?

Last edited by NiteWave; 11-29-2012 at 10:05 PM..
Reply With Quote
  #2  
Old 10-09-2012, 08:43 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
--pardon me, double post---
Reply With Quote
  #3  
Old 10-09-2012, 11:52 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
Quote:
is there anyway I can recompile php using the old LSAPI 5.5
try:modify
/usr/local/lsws/admin/html/utility/build_php/buildconf.inc.php
define ('LSAPI_VERSION', '6.0');
to
define ('LSAPI_VERSION', '5.5');
Reply With Quote
  #4  
Old 10-10-2012, 12:51 AM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Thanks Nitewave.
Unfortunatelly I cannot found define ('LSAPI_VERSION', '6.0'); on that file :

PHP Code:
<?php

define 
('LEGAL'1);
define ('TITLE''Compile PHP with LSAPI');
define ('OPTION_VERSION'2);

define ('BUILD_DIR'$_SERVER['LS_SERVER_ROOT'] . 'phpbuild');
define ('LAST_CONF'BUILD_DIR '/savedconfig.'); // actual file will include . php base version.

define ('DEFAULT_INSTALL_DIR'$_SERVER['LS_SERVER_ROOT'].'lsphp'); // actual dir will include . php base version.

$PHP_VER = array('5'=>
                 array(
                         
'5.4.6',
                         
'5.4.5',
                         
'5.3.16',
                         
'5.3.15',
                         
'5.3.8',
                         
'5.3.6',
                         
'5.2.17',
                     
'5.2.9',
                     
'5.1.6'),
                 
'4'=>
                 array(
'4.4.9',
                       
'4.4.8'));

define ('LSAPI_VERSION''5.5');
define ('SUHOSIN_VERSION''0.9.33');
define ('APC_VERSION''3.1.9');
define ('XCACHE_VERSION''2.0.1');
define ('MEMCACHE_VERSION''2.2.6');
//define ('MEMCACHED_VERSION', '1.0.2');



$DEFAULT_PHP_PARAMS = array(
        
'5' => '--with-mysqli --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv',
        
'4' => '--with-mysql  --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring');


include_once( 
'buildfunc.inc.php' );

?>
But my phpinfo() is showing for Server API >> LiteSpeed V6.0

Last edited by DraCoola; 10-10-2012 at 12:56 AM.. Reason: adding php content
Reply With Quote
  #5  
Old 10-10-2012, 03:37 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
follow this (http://www.litespeedtech.com/support...ing_php_binary) to build matching php in lsws admin console. it should get you lsapi 5.5 in 4.1.13.
Reply With Quote
  #6  
Old 10-10-2012, 04:01 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
I do not think there is any change related to memory usage between lsapi 5.5 and 6.0 .
you have to test it on the same server with same PHP release.

to get back to 5.5, you can manually download php-litespeed package and over write *.c and *.h under php-xxxx/sapi/litespeed, the run make, copy over php-xxxx/sapi/php to /usr/local/lsws/fcgi-bin/lsphp-5.xxx, you can keep both 5.5 and 6.0 binary, and switch between them with changing symbolic link of lsphp5.
Reply With Quote
  #7  
Old 10-10-2012, 11:12 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Thank you George.
But i cannot run make after overwrite *.c and *.h :

Code:
root@rooted [/home/cpeasyapache/ls.src/php-5.2.17/sapi/litespeed]# make
make: *** No targets specified and no makefile found.  Stop.
Reply With Quote
  #8  
Old 10-11-2012, 05:54 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
run make under php-xxxx/ directory.
Reply With Quote
  #9  
Old 10-11-2012, 08:17 AM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
thanks George, I will try it soon.

by the way using LSWS 4.2 -suEXEC daemon- new feature makes php login session suddenly throw out.
I have got two complaints regarding to this.
and as my 1st post, it using swap much even phisycal RAM space have enough space.

I don't know what I am missing, but my two boxes bring the same behaviour about login session and force using swap.
Reply With Quote
  #10  
Old 10-12-2012, 12:43 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by DraCoola View Post
...

I don't know what I am missing, but my two boxes bring the same behaviour about login session and force using swap.
Can you elaborate the issue?

Also for the swap usage, it means at one point that much swap was used (when there was no free memory). It does not mean your server is currently using swap while free memory still available.
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 04:33 PM.



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