Anyone have a script or set of instructions for setting up a fresh install of web2py on Cherokee on Ubuntu 10.04 Lucid (in the cloud)? Lucid or Cherokee repositories OK. Sqlite fine for now but MySql or Postgres would be great.
Asked
Active
Viewed 814 times
2 Answers
1
update: Much more concise, direct instructions for the latest Cherokee ?from the question author?
I just successfully set up Ubuntu 10.04 + Cherokee 0.99.39 + Web2Py 1.91.4. It's set up on a VPS, but I suppose setting it up on Amazon EC is not too different (compared to setting up on a VPS, the Web2py-specific steps are identical). Also, I wanted to use uWSGI, but FastCGI is also an option. The latest version of Web2Py (1.90.1+) has built-in support for MySql.
Steps in brief:
- Provision VPS with Ubuntu 10.04
- Ensure "Universe" repositories are enabled.
- Follow these steps to run this script that installs Web2Py and related dependencies.
- The script above actually installed Apache2 webserver. Uninstall/disable Apache2.
- Install Cherokee web server. I simply used
sudo apt-get install cherokee
- Install uWSGI.
- Configure uWSGI for Web2Py.
- Configure a Cherokee virtual server to use a uWSGI+Web2Py platform. (Jump to step III)
Optional: The pretty Cherokee admin graphs don't work without some additional steps (install rddtools and libcherokee-mod-rrd; wait 5-10 minutes)

Leftium
- 16,497
- 6
- 64
- 99