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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > litespeed fastcgi handler

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2013, 02:56 PM
vacancy vacancy is offline
Member
 
Join Date: Sep 2012
Posts: 12
Default litespeed fastcgi handler

Hello

Fastcgi handler option can not be selected via Litespeed, I wonder how on litespeed software handler can run fastcgi, fastcgi run performance in terms of the benefit you?
Reply With Quote
  #2  
Old 01-28-2013, 10:26 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
you need to build PHP with fcgi api as follows:

http://www.litespeedtech.com/how-tos.html#qa_phpfcgi

lsapi + PHP is recommended over fcgi for better performance

http://www.litespeedtech.com/lsapi-l...interface.html

Quote:
LiteSpeed SAPI is designed to be the fastest server API for inter-process communication between LiteSpeed Web Server and third party web application, protocol overhead has been reduced to minimum. Comparing to FastCGI protocol, LiteSpeed SAPI has about 25% speed advantage over FastCGI for simple "Hello World" application.
Reply With Quote
  #3  
Old 01-28-2013, 10:57 AM
vacancy vacancy is offline
Member
 
Join Date: Sep 2012
Posts: 12
Thank you for letting me answer webizen.

When we compile fastcgi with easyapache via Cpanel, litespeed fastcgi handler is active, will you?
Reply With Quote
  #4  
Old 01-28-2013, 11:20 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Nope. it is manual work as indicated in the previous post: you need to compile PHP with --enable-fastcgi--enable-discard-path --disable-path-info-check and create fastcgi handler and link to fcgi external app using the compiled PHP.
Reply With Quote
  #5  
Old 01-28-2013, 03:15 PM
vacancy vacancy is offline
Member
 
Join Date: Sep 2012
Posts: 12
hello again

Php fastcgi protocol is enabled by adding the assembly of LSAP did, but when I compile the assembly and the assembly rules is canceled fastcgi doing without.

Lsapi configure settings
--enable-fastcgi--enable-discard-path --disable-path-info-check

the compilation of LSAPI

./configure '--prefix=/usr/local/lsws/lsphp5' '--disable-path-info-check' '--with-litespeed'

Some fastcgi is automatically canceled.
Reply With Quote
  #6  
Old 01-28-2013, 03:42 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
you should not use '--with-litespeed'. just to be clear: there is *no* litespeed fastcgi but regular fastcgi.
Reply With Quote
  #7  
Old 01-28-2013, 04:08 PM
vacancy vacancy is offline
Member
 
Join Date: Sep 2012
Posts: 12
As you said - with-litespeed part of the erased, but when I compile via LSAP automatically re-added and deleted part of fastcgi.
Reply With Quote
  #8  
Old 01-28-2013, 04:14 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Quote:
Originally Posted by vacancy View Post
As you said - with-litespeed part of the erased, but when I compile via LSAP automatically re-added and deleted part of fastcgi.
What's why I said it is a manual thing. You can not use compile PHP from admin console which will add '--with-litespeed' option automatically. You have to manually compile from command line with needed options.
Reply With Quote
  #9  
Old 01-28-2013, 04:22 PM
vacancy vacancy is offline
Member
 
Join Date: Sep 2012
Posts: 12
I added manually following sections.

However, when I start compiling the following options automatically - with-litespeed added.

I have added

Quote:
--enable-bcmath --enable-calendar --enable-force-cgi-redirect --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-magic-quotes --enable-mbstring --enable-pdo=shared --enable-soap --enable-sockets --enable-wddx --enable-zend-multibyte --enable-zip --with-curl=/opt/curlssl/ --with-curlwrappers --with-freetype-dir=/usr --with-gd --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-kerberos --with-libdir=lib64 --with-libexpat-dir=/usr --with-libxml-dir=/opt/xml2 --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mhash=/opt/mhash/ --with-mime-magic --with-mm=/opt/mm/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/bin/mysql_config --with-openssl=/usr --with-openssl-dir=/usr --with-pcre-regex=/opt/pcre --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-pic --with-png-dir=/usr --with-sqlite=shared --with-tidy=/opt/tidy/ --with-ttf --with-xmlrpc --with-xpm-dir=/usr --with-xsl=/opt/xslt/ --with-zlib --with-zlib-dir=/usr --disable-path-info-check --enable-fastcgi --enable-discard-path

If I start the compilation process is as follows


Quote:
./configure '--prefix=/usr/local/lsws/lsphp5' '--enable-discard-path' '--disable-path-info-check' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zend-multibyte' '--enable-zip' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mime-magic' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-ttf' '--with-xmlrpc' '--with-litespeed'
Reply With Quote
  #10  
Old 01-28-2013, 04:35 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
As stated before, do NOT use Compile PHP from Admin Console. Otherwise, you will end up with what you described (--with-litespeed gets added automatically).

Instead, use the following reference to compile PHP from command line (http://www.litespeedtech.com/support...wiki:php:lsapi). You need to make sure '--with-litespeed' option is removed.
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 05:45 AM.



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