If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

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
    cjs 15 years ago
    * Restarting web server apache2 Syntax error on line 6 of /etc/apache2/sites-enabled/000-default: Invalid option to WSGI daemon process definition.

  • 0
    cjs 15 years ago
    Changing: VirtualHost *:80> WSGIDaemonProcess web2py user=www-data group=www-data display-name=%{GROUP} To be this: VirtualHost *:80> WSGIDaemonProcess web2py user=www-data group=www-data lets Apache run with no error...

  • 0
    villas 15 years ago
    Works nicely

  • 0
    yarkot 15 years ago
    This refers to an old version of a file which has been renamed (it shouldn't still exist on svn;) Please use the current file - and you might as well get it from the master repository: wget http://bazaar.launchpad.net/%7Emdipierro/web2py/devel/annotate/head%3A/scripts/setup-web2py-ubuntu.sh sudo sh ./setup-web2py-ubunt.sh Also, read through this script before running it: it has many side-effects not about web2py at all. For example, it installs many packages (apt-get ....) which may affect your ubuntu in ways you do not want. For example, Ubuntu currently comes with Python 2.6 installed; you DO NOT need Python 2.5 to run web2py (this part of the script is completely gratuitous, unnecessary). Consider carefully all the pieces in this script. Having said that, the script can provide a good starting point for seting up your own web2py installation with apache.

  • 0
    villas 14 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

Hosting graciously provided by:
Python Anywhere