On a fresh Ubuntu install type

 wget http://web2py.googlecode.com/svn/trunk/scripts/setup-web2py-ubuntu.sh
 chmod +x setup-web2py-ubuntu.sh
 sudo ./setup-web2py-ubuntu.sh

It will: - apt-get everything you need - create /home/www-data/web2py - start a local web2py copy on port 8123 to ssh into its admin interface - create a self signed certificate - write /var/apache2/sites-available/default configured to use the certificate and mod_wsgi with web2py - restart apache and postgresql

After you run the script, simply visit:

http://hostname/

Related slices

Comments (9)

  • Login to post



  • 0
    rajaram-s 2 months ago
    Can you please help with such a script for Red Hat / rpm based distros?

  • 0
    virtualdisaster 1 year ago
    Not sure about "headers" but there do appear to be some "expires" directives in the conf file.

  • 0
    dalenkruse 1 year ago
    Please forgive my ignorance, but why are the headers and expires modules enabled with this script?

  • 0
    mrfreeze 2 years ago
    Try this one instead: http://bazaar.launchpad.net/%7Emdipierro/web2py/devel/download/head%3A/setupweb2pyubuntu.sh-20091113071543-nuyvk7g9cfu086wk-1/setup-web2py-ubuntu.sh

  • 0
    villas 2 years ago
    wget http://bazaar.launchpad.net/%7Emdipierro/web2py/devel/annotate/head%3A/scripts/setup-web2py-ubuntu.sh This link leads to oblivion...
show more comments