LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   CGI/Perl/Python (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=22)
-   -   FastCGI on shared host (http://www.litespeedtech.com/support/forum/showthread.php?t=2872)

lotusone 04-16-2009 01:24 PM

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

mistwang 04-16-2009 03:22 PM

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.

lotusone 04-16-2009 05:11 PM

Quote:

Originally Posted by mistwang (Post 14603)
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 (Post 14603)
We will add support for Apache mod_fastcgi directives in our 4.0.2 release.

Awesome! Thanks :)

mistwang 04-16-2009 09:19 PM

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.

lotusone 04-17-2009 08:44 AM

Quote:

Originally Posted by mistwang (Post 14614)
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?

mistwang 04-24-2009 03:34 PM

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.


All times are GMT -7. The time now is 11:47 AM.