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

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > FastCGI on shared host

Reply
 
Thread Tools Display Modes
  #1  
Old 04-16-2009, 01:24 PM
lotusone lotusone is offline
New Member
 
Join Date: Apr 2009
Posts: 8
Default FastCGI on shared host

Thanks for the forum!

I want to run a FastCGI app on my shared host.

The host informed me that they do not have vhosts set up through litespeed via the admin console i.e. they have no "Virtual Host" tab, thus no "Context" tab to set a directory wide handler for the app. They also have only a server-level "External App" tab.

So here's the problem:
When they set up the external app server-wide, it runs under litespeed's UID. Thus, whenever it runs afoul, I can't kill the processes or otherwise regain control. I also have to increase the permissions on all the files the app needs.

The questions:
1. Is there a way to get the app to run under my uid without resorting to the vhost->(External App & Context) settings?
2. How could those vhost tabs not exist in a litespeed setup? Is this a common way to use litespeed with virtual hosts?
3. Is there a way (like .htaccess) to map a server-wide external app to a directory e.g. www.mysite.com/ instead of to an extension via "Script handler" tab?

Sean DeNigris
Reply With Quote
  #2  
Old 04-16-2009, 03:22 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
It is not possible now unless they configure your vhost natively with LSWS console.

We will add support for Apache mod_fastcgi directives in our 4.0.2 release.
Reply With Quote
  #3  
Old 04-16-2009, 05:11 PM
lotusone lotusone is offline
New Member
 
Join Date: Apr 2009
Posts: 8
Quote:
Originally Posted by mistwang View Post
It is not possible now unless they configure your vhost natively with LSWS console.
Thanks for the prompt reply! Which is not possible: running the External app under a different uid, setting a per-directory handler, or both?

Quote:
Originally Posted by mistwang View Post
We will add support for Apache mod_fastcgi directives in our 4.0.2 release.
Awesome! Thanks
Reply With Quote
  #4  
Old 04-16-2009, 09:19 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You can set it as per-directory handler by using "DefaultType" or "ForceType" instead of "AddType" directive. But, use it for "/" will cause trouble I think, unless you do not need to have the server serve any static content.
Reply With Quote
  #5  
Old 04-17-2009, 08:44 AM
lotusone lotusone is offline
New Member
 
Join Date: Apr 2009
Posts: 8
Quote:
Originally Posted by mistwang View Post
You can set it as per-directory handler by using "DefaultType" or "ForceType" instead of "AddType" directive. But, use it for "/" will cause trouble I think, unless you do not need to have the server serve any static content.
Ok, it's working well enough - I'll just leave it alone

About the running FastCGI apps under the requester's uid... will that be part of the 4.0.2 directive implementation? i.e. FastCgiWrapper?
Reply With Quote
  #6  
Old 04-24-2009, 03:34 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
We add SuEXEC user/group for external app configured at server level. So, you can have your provider to use your user/group for the FastCGI application added for you.

We did not add support for Apache mod_fastcgi directives, so it may break other things.
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 11:27 PM.



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