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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > LSAPI PHP Handler config / stats questions

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2012, 02:43 PM
ihstiv ihstiv is offline
New Member
 
Join Date: Jul 2011
Posts: 6
Default LSAPI PHP Handler config / stats questions

I'm running LSWS 4.2.1 with 'LiteSpeed API' PHP handler and I have a couple newb questions:
1. If I want to compile PHP with LSAPI should I choose the version of PHP that I currently have compiled in Apache?

2. When I look at the 'real-time stats' I see the following as my top process:
type: LSAPI / name: APVH_lastspar_Suphp

This makes sense for the user 'lastspar' but I'm curious why it shows 'suphp' since I'm running FCGI in Apache and SUEXEC in LSWS.

I'd be grateful if someone could help me understand this stuff.

Thanks
Reply With Quote
  #2  
Old 12-12-2012, 05:09 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
Quote:
1. If I want to compile PHP with LSAPI should I choose the version of PHP that I currently have compiled in Apache?
you don't have to, but it's a good practice we recommend. building lsphp with same compile options and same version php with apache, once any issue with lsphp, you can switch back to apache, see if same issue exist. if exist, then fixing it at apache side, then rebuild matching lsphp again to reflect the fix. if not exist, then it's a lsphp specific issue.

Quote:
2. When I look at the 'real-time stats' I see the following as my top process:
type: LSAPI / name: APVH_lastspar_Suphp
it's just a name convention. typically there 3 sorts of php in apache: mod_php, suPHP, fastcgi php, but there's only 1 sort of php in litepeed, i.e., lsphp.
please refer:
http://blog.litespeedtech.com/2010/0...ache-vs-nginx/
for more details regarding these phps.
Reply With Quote
  #3  
Old 12-12-2012, 05:30 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by ihstiv View Post
I'm running LSWS 4.2.1 with 'LiteSpeed API' PHP handler and I have a couple newb questions:
1. If I want to compile PHP with LSAPI should I choose the version of PHP that I currently have compiled in Apache?
Yes, you should. It can be done via Build Matching PHP under LSWS plugin.

Quote:
Originally Posted by ihstiv View Post
2. When I look at the 'real-time stats' I see the following as my top process:
type: LSAPI / name: APVH_lastspar_Suphp

This makes sense for the user 'lastspar' but I'm curious why it shows 'suphp' since I'm running FCGI in Apache and SUEXEC in LSWS.

I'd be grateful if someone could help me understand this stuff.

Thanks
'_suPHP' tail name just means PHP handler is run as each user (like lastspar, etc) since you have PHP suEXEC enabled in LSWS. It doesn't matter if you use FCGI or suPHP in Apache.
Reply With Quote
  #4  
Old 12-12-2012, 08:56 PM
ihstiv ihstiv is offline
New Member
 
Join Date: Jul 2011
Posts: 6
Thanks so much for the replies guys - this makes sense and helps a lot!
Reply With Quote
  #5  
Old 12-13-2012, 04:16 AM
MarryJude MarryJude is offline
New Member
 
Join Date: Dec 2012
Posts: 1
This thread contains very useful information. I had some doubts now all the doubts are clear. Thanks you.
__________________
Dig deeper to find Namibia tours and self drive Namibia.
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:28 AM.



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