How to add a .fcgi on a shared host?
I'm on a shared host running Litespeed. I know that using an .htaccess file on Apache you can easily do AddHandler to configure how the server works with a certain file, but this does not seem to be working. Litespeed does claim to be compatible with .htaccess, but I'm not sure why this isn't working.
Here's what I have.
I know there's something to the effect of using a control panel to add CGI apps, but I am not the admin of this server, it is a shared host. If someone could please let me know how to do this, that'd be great.
LiteSpeed does not support fastcgi handler through Apache configurations, you can have your script run as CGI instead.
Ok, it looks like my host will add an entry for me if I can provide the details, hopefully I can get it right the first time. :)
Ok, so from all the info I've amassed...
Auto Start: Yes
Command: my_manage.py runfcgi daemonize=false
I've also read that I should have them fill in Environment with my PYTHONPATH environment settings, is this correct? In that case, since I'm also using a python installed in my home directory, should I also specify path settings that lead to my python?
As far as context, I guess I need to also provide them details about that for my VHOST.
Hopefully I can get this figured out quickly, this isn't really what I'd like to be doing... would rather be coding.
Yes, you need to set all environment variable required for the app.
Your my_manage.py should point to your copy of python installation with #!...
Yes, you need to have a fcgi context for your vhost.
You can install LSWS standard in you local development machine to try it out.
Also add a useless environment "LSAPI_CHILDREN=20" to make LSWS happy with the "MaxConn" and "Instance" combination.
How to add a fcgi on a shared host
But, I need to know how to associate a new texture to the world object:
w = World.GetCurrent
tex = Texture.Newmytex
tex.image = img
#now, how can I put this texture to be the background of my scene?
|All times are GMT -7. The time now is 03:07 PM.|