web.py server setup
webpypythonlighttpdfastcgimysqlubuntuweb-server
Abstraction: Tutorial for deploying web.py with lighttpd and FastCGI on Ubuntu
Key points:
- Guide covers installing lighttpd (not Apache), MySQL, MySQLDB Python driver, web.py, and flup on Ubuntu/Debian
- lighttpd configured with FastCGI via a socket at
/tmp/fastcgi.socketwith URL rewriting to route requests toindex.py - Author explicitly advocates lighttpd over Apache for web.py due to simpler configuration and better performance
- MySQLDB installed by building from source tarball (version 1.2.3) after installing
libmysqlclient-dev - Application file must have shebang (
#!/usr/bin/env python) and be owned/executable bywww-data
Connections: Webpy · Web Development · Server Configuration · Python