Install web2py Web Framework

This article illustrates how to install Web2py

Web2Py is a"Free open source full-stack framework for rapid development of fast, scalable, secure and portable database-driven web-based applications. Written and programmable in Python"

Download from Web2py download page the Source code:

~# wget

and unzip it:

~# unzip -a

If you don't have unzip install it:

~# apt-get update
~# apt-get install unzip

Move inside the just created web2py directory and launch web2py:

~# cd web2py
~/web2py# python -a 'AdminPwd' --ip
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2007
Version 2.8.2-stable+timestamp.2013.
Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL(pg8000), IMAP(imaplib)
please visit:
use "kill -SIGTERM 2400" to shutdown the web2py server

Open a browser and access to the web2py embedded web server from this url:

Due to security reasons, the web2py admin application is not usable on an insecure channel so we have to use https instead of http protocol using openssl.

Using Web2py in https

Install openssl:

~# apt-get update
~# apt-get install openssl

Start by generating a certificate files, if you don't have them already:

~# openssl genrsa -out server.key 2048
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)

~# openssl req -new -key server.key -out server.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name (2 letter code) [AU]:IT
State or Province Name (full name) [Some-State]:Rome
Locality Name (eg, city) []:Ladispoli
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

~# openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Signature ok

Copy the server.key and server.crt files to your web2py root folder.

~# cp server.key web2py
~# cp server.crt web2py

Then start the web2py application using the certificate files:

~# cp web2py
~/web2py# python -a 'AdminPwd' -c server.crt -k server.key -i -p 8000

Open a browser and access to the web2py embedded web server in https from this url:

Now it is possible to access to the Administrator page


web2py is copyrighted by Massimo Di Pierro. The web2py trademark is owned by Massimo Di Pierro.

EUR 7.00

WIFI-2 - WiFi USB module (Ext. antenna)

OEM Small USB module

  • 2.4 gHz
  • USB 2.0
  • Power supply @ 3.3 Volt
  • IEEE 802.11 b/g/n Wi-Fi compliant
  • RaLink RT5370N chip
  • Requires an external antenna (Part# AN-WIFI-01 or AN-WIFI-02)
  • Configurable as Access Point
  • Male strip soldered
  • Size 28x14mm
| Product description || Datasheet |

EUR 2.00

AN-WIFI-01 - WiFi pcb external antenna

WiFi PCB antenna with 11 cm cable and UMC 2mm connector to be plugged on WIFI-2 module.

| Antenna datasheet |

EUR 7.00

AN-WIFI-02 - WiFi external antenna with SMA cable (Version FEMALE/MALE)

Antenna for WIFI-2 module

  • Rubber antenna with FEMALE SMA connector
  • RF cable with panel mountable MALE SMA connector and 2mm UMC connector with about 10 cm length cable

| Antenna datasheet | Cable datasheet |