You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
su
yum install postgresql postgresql-devel postgresql-server python-psycopg2 postgis
service postgresql initdb
service postgresql start
passwd postgres
su - postgres
psql -c "alter role postgres with password 'SET-PASSWORD-HERE';"
vim data/pg_hba.conf
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
service postgresql restart
Prepare production configuration
paster make-config georegistry production.ini
vim production.ini
Prepare database template
su - postgres
createdb -E UTF8 template_postgis
createlang -d template_postgis plpgsql
PGSHARE=`pg_config --sharedir`
psql -d template_postgis -f `find $PGSHARE -name postgis.sql -o -name postgis-64.sql | tail -n 1`
psql -d template_postgis -f `find $PGSHARE -name spatial_ref_sys.sql | tail -n 1`
psql -d template_postgis -c 'GRANT ALL ON geometry_columns TO PUBLIC; GRANT ALL ON spatial_ref_sys TO PUBLIC;'