Litespeed compatible with phpshield?

#1
Currently I am using an application that uses phpshield to encode some of the source code. Does Litespeed support this?

Also does your installation service include the configuration of php and perl to work with the existing site? Right now I have apache/cpanel running a modified version of this script: http://phpmotion.com/content/view/16/32/

Lastly, can Litespeed handle 10,000+ simultaneous connections?
 

mistwang

LiteSpeed Staff
#2
phpshield loader is like ionCube load. should work fine with lsphp.

Our installation service include PHP, but not include perl. PHPmotion is written in PHP, should work well with LSWS.

LiteSpeed is designed to be the most scalable web server, it should be able to handle 10,000+ concurrent connections with the right hardware and kernel configurations.
 

mistwang

LiteSpeed Staff
#3
I have been helping with the trouble shoot of litespeed setup for your site and finally make the PHP working properly.
However, there is a performance issue you need to address in your code. LSWS will buffer the whole PHP response, normally, it works well, but, since you stream the whole video through PHP, lshttpd need to buffer a couple MBs for each request.

The solution is to change your code from streaming video file through PHP to issuing an internal redirect from PHP and let lshttpd serve the video file directly. you have to make the change if you want to serve 10,000+ simultaneous connections.

About LiteSpeed internal redirect:
http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed:wiki:feature:internal_redirect


The change is very small, in <doc_root>/uploads/check.php. If you need help with the code change, please PM me.
 
#4
Do you have a test page where I could see the internal redirect in action? I want to see if the end user will be able to detect the redirect. As http headers can be spoofed and can lose referral information on some web browsers. Also flash will not accept a standard http redirect so I'm not sure if your internal redirect will work.
 

mistwang

LiteSpeed Staff
#5
The internal redirect is transparent to end user, completely within the server. It is not a standard http redirect. simple PHP code like

header( "X-LiteSpeed-location: /another/hidden/url" );

will show you the effect. And you can add "Content-disposition" header as well.
 
Top