Is it possible to install an app running on lighttpd instead of Apache?
For instance, the official web2py install script with default settings and the built-in demo app alone uses over 170mb of RAM. That's just running the admin page and the Welcome demo page. Well over the 80mb allotted in the default hosting plan. I had to tweak my server settings quite a bit to keep from getting my processes killed after installing it.
If the official web2py script followed this guide and used lighttpd instead of Apache, server load by default would be a fraction of what it is with the current option.
Is there a current way to write a script for this or could there be in the future?
asked Nov 24 '11 at 00:06
Yes, there is a way to write a script to install web2py with lighttpd instead of Apache.
The existing unofficial WebFaction web2py installer uses the WebFaction control panel API to create the application. You can use that script as a starting point and modify it to build lighttpd as a custom app (instead of installing our mod_wsgi + Apache stack), and then have it configure lighttpd to serve web2py.
answered Nov 24 '11 at 08:43
You may build custom HTTP servers on your account like lighthttpd. You would first create a 'custom application' in the control panel following this documentation. You would than log in to the server with SSH, download the source code, build, than configure it. We do not plan on adding lighthttpd to the list of supported server installers any time soon. We provide apache since its the most stable and supported, but it is common for people to try other stacks for python like lighthttpd, nginx, passenger or gunicorn to name a few.