All Questions
12
questions
0
votes
0
answers
1k
views
Trying to deploy my flask web app using lighttpd
I'm trying to deploy my flask web app using lighttpd. I created this hello.fcgi file
#!/usr/bin/python
from flup.server.fcgi import WSGIServer
from hello import app
if __name__ == '__main__':
...
0
votes
2
answers
3k
views
flask, lighttpd with fastcgi can't get it to work
i'm tring to deploy a simple flask script to a lighttpd server with fastcgi.
this is the configuration file for lighttpd builded using the flask documentation http://flask.pocoo.org/docs/deploying/...
4
votes
1
answer
1k
views
Lighttpd, Python, MySQLdb Python Module and Permissions
After restarting a lighttpd server recently I haven't been able to get it up and running again. I am running a python built API service on it, and am relying on the web.py module to run the ...
0
votes
1
answer
1k
views
Lighttpd $HTTP["host"] regex matching
I've set up my config like this:
$HTTP["host"] =~ "(^|\.)domain1\.com$" {
fastcgi.server = ( "/domain1.py" =>
((
"socket" => "/tmp/fastcgi.socket",
"bin-path" => "/home/...
6
votes
1
answer
9k
views
How to setup Python with Lighttpd and FastCGI (like PHP)
Running Lighttpd on Linux, I would like to be able to execute Python scripts just the way I execute PHP scripts.
The goal is to be able to execute arbitrary script files stored in the WWW directory, ...
2
votes
2
answers
2k
views
Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?
I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock.
If I'm creating the file by ...
23
votes
1
answer
8k
views
Python CGI on Amazon AWS EC2 micro-instance -- a how-to!
How can you make an EC2 micro instance serve CGI scripts from lighthttpd? For instance Python CGI?
Well, it took half a day, but I have gotten Python cgi running on a free Amazon AWS EC2 micro-...
1
vote
1
answer
147
views
Getting waaay too many "Spawning Local" fastcgi messages
I've got Lighttpd running 7 Python apps via fastcgi on an Ubuntu server. I turned on fastcgi debugging in the Lighttpd configuration and noticed something very weird in the logs:
Normally, when you ...
4
votes
2
answers
3k
views
Better webserver performance for Python Django: Apache mod_wsgi or Lighttpd fastcgi
I am currently running a high-traffic python/django website using Apache and mod_wsgi. I'm hoping that there's a faster webserver configuration out there, and I've heard a fair number of ...
2
votes
3
answers
394
views
How to diagnose erratic disk behavior?
I have a web site with users lighttpd and CGI scripts.
After upgrading to Fedora 11 (ext4) the disc access became erratic.
The timing of python -c 'import cgi' varies between 0.1 to almost 10 seconds:...
0
votes
2
answers
456
views
Recommended setup to serve both HTTPS & HTTP connections to a pylons web-application
I'm looking for a simple way to serve my pylons application in both HTTP & HTTPS (for the administration section). I had come across some tutorials on serving pylons applications through an Apache ...
2
votes
2
answers
593
views
Recommend books/resources for this stack: linux, lighttpd, postgres, webpy
I'm trying to learn to run a simple server (and python simultaneously, but that's beside the point). The tutorials available at the websites of the aforementioned technologies were enough to get the ...