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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > lsapi

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2005, 01:38 PM
hopfi2k hopfi2k is offline
New Member
 
Join Date: Jun 2004
Posts: 9
Default lsapi

Hi,

I'm facing troubles compiling php with lsapi support (Litespeed 2.1RC1) on FreeBSD 5.x. This is the error message from make:

In file included from /root/php-4.3.11/sapi/litespeed/lsapilib.c:50:
/usr/include/netinet/tcp.h:44: error: syntax error before "tcp_seq"
/usr/include/netinet/tcp.h:45: error: syntax error before "tcp_cc"
/usr/include/netinet/tcp.h:55: error: syntax error before "u_short"
*** Error code 1

Stop in /root/php-4.3.11.

The following configure statement was used: ./configure --with-config-file-path=../conf --with-openssl --with-zlib --enable-gd-native-ttf --with-gettext --with-litespeed

Any ideas?

Best Regards
Andy
Reply With Quote
  #2  
Old 05-22-2005, 04:34 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please try add a line
Code:
#include <sys/types.h>
before including tcp.h, if it does not work add
Code:
#include <inttypes.h>
.
Reply With Quote
  #3  
Old 05-23-2005, 04:15 AM
hopfi2k hopfi2k is offline
New Member
 
Join Date: Jun 2004
Posts: 9
Quote:
Originally Posted by mistwang
Please try add a line
Code:
#include <sys/types.h>
before including tcp.h, if it does not work add
Code:
#include <inttypes.h>
.
That did the trick - many thanks!

It seems that the include statement for types.h is _below_ tcp.h. After moving it before it compiles fine.

Best regards,
Andy
Reply With Quote
  #4  
Old 05-31-2005, 10:18 AM
joe joe is offline
Member
 
Join Date: Mar 2005
Posts: 30
I got through this bug with the help above, but now how do I use this binary I built??

lsphp -v returns
www# ./lsphp -v
PHP 5.0.4 (litespeed) (built: May 27 2005 16:05:04)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
www#

but my GUI for 2.06 doesn't offer any place to use it. Under Server -> Ext Apps I don't see LS SAPI as an option. I read and re-read the LSAPI page here but I'm lost. I got standard php scripts defined, but now I can't get lsapi defined.

Running on FreeBSD, php 5.0.4 is running fine as a fast-cgi, just not with lsapi.

My goal is to get .htaccess mod_rewrite functionality in PostNuke working. Certain modules cry it ain't there yet the logs show tons of hits for the fav.icon file (which I ain't made yet)

Help?
Reply With Quote
  #5  
Old 05-31-2005, 11:07 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please try 2.1RC1, lsapi support is only available in 2.1x releases.
Reply With Quote
  #6  
Old 06-01-2005, 06:30 AM
joe joe is offline
Member
 
Join Date: Mar 2005
Posts: 30
doh! :oops:

Please make that more clear in the Docs.
Reply With Quote
  #7  
Old 06-01-2005, 09:28 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Will do.
Reply With Quote
  #8  
Old 06-16-2005, 11:14 AM
hopfi2k hopfi2k is offline
New Member
 
Join Date: Jun 2004
Posts: 9
Default lsapi server-restarts/crashes

Although I managed to compile and run lsapi under FreeBSD now, I'm facing around 200-500 litespeed restarts a day :-(

This is using kqueues, what I will now change to polling.

Are there any know issues with so much server-crashes and restarts using lsapi under FreeBSD (5.x)?
Reply With Quote
  #9  
Old 06-16-2005, 11:52 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
I think the core dump is kqueue related, not lsapi, please try poll, see if it restart so often.
If you can make it dump a core file and send it to us for analysis, we will iron out the bug quickly. :-)

You may need to change some kernel configuration to allow core dump for setuid process.

George
Reply With Quote
  #10  
Old 06-16-2005, 11:56 PM
hopfi2k hopfi2k is offline
New Member
 
Join Date: Jun 2004
Posts: 9
You are right, changing to fast-cgi didn't made it any better.

I'll now try switching from kqueue to polling and report later.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup for Rails via Litespeed Ruby LSAPI Justin Ruby/Rails 2 12-08-2007 07:19 PM
Ruby LSAPI 2.4 and PHP LSAPI 3.1 released mistwang News 0 04-24-2007 03:35 PM
Verifying RoR + LSAPI is working? dfberg Ruby/Rails 1 01-12-2007 10:54 AM
LSAPI Ruby v1.12, PHP v2.4 Released mistwang News 0 01-10-2007 01:18 PM
lsapi processes not being used, build up to > max_connections fantasydreaming Bug Reports 8 12-01-2006 08:59 AM


All times are GMT -7. The time now is 12:52 AM.



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