How to upload data
==================

1) create a postgis database named "test_postgis":

see /usr/share/postgis/README.postgis

2[optional]) edit Makfile to put the right shp2pgsql path

3[optional]) type make to generate the sql files

4) insert the sql into the database

5) create user www-data:
createuser www-data

6) set its password to "www-data"
alter user "www-data" password 'www-data';

7) allow it to connect through tcp:

add to /etc/postgresql/pg_hba.conf (pay attentiont to the order, should be before ident line)
host    test_postgis  www-data  127.0.0.1         255.255.255.255   md5

8) pay attention to the access rights

grant select on geometry_columns, spatial_ref_sys, lines, points, polygons to "www-data";
