Hi,

I'm using lighttpd with web.py. When lighttpd starts,
it starts code.py, too. This is all good.

However in order to call a Python library, I have to start web.py
app from a shell script, where LD_LIBRARY_PATH is set.

I find that after replacing the .py file with .sh file,
lighttpd fails to start code.py with this error:

(mod_fastcgi.c.1029) child exited with status 8

I wonder how web.py detects that it's run in FastCGI mode?
I logged the arguments but it seems that when lighttpd
starts code.py, no argument is used. So my question is,
instead of specifying the python file in lighttpd, can I
use a shell script that calls the python file?

My shell script looks like this:

export LOAD_LIBRARY_PATH=/usr/local/lib/my_lib_dir
cd /opt/my_code_dir
./code.py fcgi


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to